PromucFlow_constructor/app/client/src/ce/pages/AppViewer/BackToHomeButton.tsx
Pawan Kumar d7e2c491e0
feat: Branding (#18717)
* add branding for ce

* add ce changes

* update colorpicker ux

* remove unsued flag

* Add new email templates

Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>

* add local appsmith logo

* code review feedback fixes + qa fixes

* remove forward slash in url of favicon

* fix message

* Fix tests

Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>

* update messages

* Fix tests (again)

Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>

* update messages

* fix cypress tests

* skipping app layout test cases

* fix cypress tests

* remove it.only

* try moving test

* use stable DS version

* remove __diff

Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
2022-12-09 20:13:47 +05:30

28 lines
782 B
TypeScript

import React from "react";
import { Link } from "react-router-dom";
import { useSelector } from "react-redux";
import AppsIcon from "remixicon-react/AppsLineIcon";
import { getSelectedAppTheme } from "selectors/appThemingSelectors";
function BackToHomeButton() {
const selectedTheme = useSelector(getSelectedAppTheme);
return (
<Link
className="flex items-center gap-2 group t--back-to-home hover:no-underline"
to="/applications"
>
<AppsIcon
className="p-1 text-[#858282] w-7 h-7 group-hover:bg-gray-100"
style={{
borderRadius: selectedTheme.properties.borderRadius.appBorderRadius,
}}
/>
<span className="hidden md:block text-[#4B4848]">Apps</span>
</Link>
);
}
export default BackToHomeButton;