From 042570584f5dca5417d86d28011aab5820385c2c Mon Sep 17 00:00:00 2001 From: Yury Molodov Date: Mon, 3 Jan 2022 21:55:28 +0300 Subject: [PATCH] fix: change query reset (#2001) --- .../vmui/src/components/Header/Header.tsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/app/vmui/packages/vmui/src/components/Header/Header.tsx b/app/vmui/packages/vmui/src/components/Header/Header.tsx index b2ac788a27..e54611bc6b 100644 --- a/app/vmui/packages/vmui/src/components/Header/Header.tsx +++ b/app/vmui/packages/vmui/src/components/Header/Header.tsx @@ -4,6 +4,7 @@ import {ExecutionControls} from "../Home/Configurator/Time/ExecutionControls"; import {DisplayTypeSwitch} from "../Home/Configurator/DisplayTypeSwitch"; import Logo from "../common/Logo"; import makeStyles from "@mui/styles/makeStyles"; +import {setQueryStringWithoutPageReload} from "../../utils/query-string"; const useStyles = makeStyles({ logo: { @@ -11,7 +12,10 @@ const useStyles = makeStyles({ display: "flex", alignItems: "center", color: "#fff", - transition: ".2s textDecoration", + cursor: "pointer", + "&:hover": { + textDecoration: "underline" + } }, issueLink: { position: "absolute", @@ -32,16 +36,21 @@ const Header: FC = () => { const classes = useStyles(); + const onClickLogo = () => { + setQueryStringWithoutPageReload(""); + window.location.reload(); + }; + return - + VM UI - + create an issue