base flow for representations

This commit is contained in:
2021-08-09 10:16:54 +01:00
parent f9f36bd065
commit b3fe6bf5f5
31 changed files with 2494 additions and 64 deletions
+6 -7
View File
@@ -9,6 +9,7 @@ const Header = (props) => {
const router = useRouter();
const { locale } = router;
const { setLogout } = props;
const noSignoutLink = ["/", "/logout"];
return (
<header
@@ -98,9 +99,8 @@ const Header = (props) => {
</div>
<div className="content">
<ul>
{router.pathname == "/logout" ? (
""
) : router.pathname == "/" ? (
{noSignoutLink.includes(router.pathname) ==
true ? (
""
) : (
<li>
@@ -157,8 +157,9 @@ const Header = (props) => {
</div>
</div>
<div className="fullNav">
{router.pathname != "/" ||
router.pathname != "/logout" ? (
{noSignoutLink.includes(router.pathname) == true ? (
""
) : (
<Link href="/logout">
<a
onClick={() => {
@@ -169,8 +170,6 @@ const Header = (props) => {
{t("common:signout-label")}
</a>
</Link>
) : (
""
)}
<Link