fix: Not able to right click on app home button in view mode (#15085)

replace button with link
This commit is contained in:
Pawan Kumar 2022-07-13 12:26:59 +05:30 committed by GitHub
parent bac6162921
commit 0a78aa4aed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,20 +1,17 @@
import React from "react";
import { Link } from "react-router-dom";
import { useSelector } from "react-redux";
import { useHistory } from "react-router";
import AppsIcon from "remixicon-react/AppsLineIcon";
import { getSelectedAppTheme } from "selectors/appThemingSelectors";
function BackToHomeButton() {
const history = useHistory();
const selectedTheme = useSelector(getSelectedAppTheme);
return (
<button
className="flex items-center gap-1 group t--back-to-home"
onClick={() => {
history.push("/applications");
}}
<Link
className="flex items-center gap-1 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"
@ -23,7 +20,7 @@ function BackToHomeButton() {
}}
/>
<span className="hidden md:block text-[#4B4848]">Apps</span>
</button>
</Link>
);
}