fix: Not able to right click on app home button in view mode (#15085)
replace button with link
This commit is contained in:
parent
bac6162921
commit
0a78aa4aed
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user