From 3b9c9aadb5e1de613af84048d05846818dbc6aaa Mon Sep 17 00:00:00 2001 From: Jakob Moser <moser@cl.uni-heidelberg.de> Date: Tue, 25 Jun 2024 13:24:33 +0200 Subject: [PATCH] Reformat fiel with prettier --- portal/static/js/components/pieces/Nav.mjs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/portal/static/js/components/pieces/Nav.mjs b/portal/static/js/components/pieces/Nav.mjs index 9aad58b..7a6052c 100644 --- a/portal/static/js/components/pieces/Nav.mjs +++ b/portal/static/js/components/pieces/Nav.mjs @@ -1,8 +1,7 @@ import { NavPageLink } from "./NavPageLink.mjs" import { logout, isLoggedIn } from "../../account.mjs" -const hasQueryParam = (param, path) => (param in m.parsePathname(path).params); - +const hasQueryParam = (param, path) => param in m.parsePathname(path).params export const Nav = { view() { @@ -63,7 +62,9 @@ export const Nav = { iconOnly: true, }) : m(NavPageLink, { - href: hasQueryParam("next", m.route.get()) ? m.route.get() : `/login?next=${m.route.get() || "/"}`, + href: hasQueryParam("next", m.route.get()) + ? m.route.get() + : `/login?next=${m.route.get() || "/"}`, label: " Anmelden", icon: "fa-solid fa-right-to-bracket", }), -- GitLab