diff --git a/client/src/common/components/Header/HeaderComponent.jsx b/client/src/common/components/Header/HeaderComponent.jsx index 9b121c58..5d4e4381 100644 --- a/client/src/common/components/Header/HeaderComponent.jsx +++ b/client/src/common/components/Header/HeaderComponent.jsx @@ -18,6 +18,8 @@ import {t} from "i18next"; import {ConfigContext} from "@/common/contexts/Config"; import {LoadingDialog} from "@/common/components/LoadingDialog"; import {NodeContext} from "@/common/contexts/Node"; +import {WEB_URL} from "@/index"; +import {Trans} from "react-i18next"; function HeaderComponent(props) { const findNode = useContext(NodeContext)[4]; @@ -35,6 +37,12 @@ function HeaderComponent(props) { toggleDropdown(setIcon); } + const showDemoDialog = () => setDialog({ + title: t("preview.title"), + description: }}>preview.description, + buttonText: t("dialog.okay") + }); + const showPasswordDialog = () => setDialog({ title: t("header.admin_login"), placeholder: t("dialog.password.placeholder"), @@ -90,7 +98,13 @@ function HeaderComponent(props) {
- {config.viewMode ?

{t("header.title")}

:

props.showNodePage(true)} className="h2-click"> {getNodeName()}

} +
+ {config.viewMode &&

{t("header.title")}

} + {!config.viewMode &&

props.showNodePage(true)} className="h2-click"> {getNodeName()}

} + + {config.previewMode &&

{t("preview.info")}

} +
+
{updateAvailable ?