diff --git a/package.json b/package.json index 7305160..79ee2e5 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,6 @@ "eslint-plugin-astro": "^0.31.4", "eslint-plugin-jsx-a11y": "^6.8.0", "prettier-plugin-astro": "^0.13.0", - "sass": "^1.71.0" + "sass": "^1.72.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cd66746..c37a961 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -19,7 +19,7 @@ dependencies: version: 2.4.1(react-dom@18.2.0)(react@18.2.0) astro: specifier: ^4.3.5 - version: 4.3.5(sass@1.71.0)(typescript@5.1.3) + version: 4.3.5(sass@1.72.0)(typescript@5.1.3) classnames: specifier: ^2.5.1 version: 2.5.1 @@ -59,8 +59,8 @@ devDependencies: specifier: ^0.13.0 version: 0.13.0 sass: - specifier: ^1.71.0 - version: 1.71.0 + specifier: ^1.72.0 + version: 1.72.0 packages: @@ -119,7 +119,7 @@ packages: peerDependencies: astro: ^4.0.0 dependencies: - astro: 4.3.5(sass@1.71.0)(typescript@5.1.3) + astro: 4.3.5(sass@1.72.0)(typescript@5.1.3) send: 0.18.0 server-destroy: 1.0.1 transitivePeerDependencies: @@ -2789,7 +2789,7 @@ packages: '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/core@7.23.5) '@types/babel__core': 7.20.5 react-refresh: 0.14.0 - vite: 5.0.12(sass@1.71.0) + vite: 5.0.12(sass@1.72.0) transitivePeerDependencies: - supports-color dev: false @@ -3008,7 +3008,7 @@ packages: - supports-color dev: true - /astro@4.3.5(sass@1.71.0)(typescript@5.1.3): + /astro@4.3.5(sass@1.72.0)(typescript@5.1.3): resolution: {integrity: sha512-7jPffNlcmDO94NlkWe/hUWta/pIjlx1LVD/DZb/fyjT1Jv+7mGhKZBIjkDfeVpequW70mep8cAS5RM7Pxa0Gdg==} engines: {node: '>=18.14.1', npm: '>=6.14.0'} hasBin: true @@ -3072,7 +3072,7 @@ packages: tsconfck: 3.0.0(typescript@5.1.3) unist-util-visit: 5.0.0 vfile: 6.0.1 - vite: 5.0.12(sass@1.71.0) + vite: 5.0.12(sass@1.72.0) vitefu: 0.2.5(vite@5.0.12) which-pm: 2.1.1 yargs-parser: 21.1.1 @@ -7712,8 +7712,8 @@ packages: suf-log: 2.5.3 dev: true - /sass@1.71.0: - resolution: {integrity: sha512-HKKIKf49Vkxlrav3F/w6qRuPcmImGVbIXJ2I3Kg0VMA+3Bav+8yE9G5XmP5lMj6nl4OlqbPftGAscNaNu28b8w==} + /sass@1.72.0: + resolution: {integrity: sha512-Gpczt3WA56Ly0Mn8Sl21Vj94s1axi9hDIzDFn9Ph9x3C3p4nNyvsqJoQyVXKou6cBlfFWEgRW4rT8Tb4i3XnVA==} engines: {node: '>=14.0.0'} hasBin: true dependencies: @@ -8709,7 +8709,7 @@ packages: vfile-message: 4.0.2 dev: false - /vite@5.0.12(sass@1.71.0): + /vite@5.0.12(sass@1.72.0): resolution: {integrity: sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -8740,7 +8740,7 @@ packages: esbuild: 0.19.8 postcss: 8.4.32 rollup: 4.6.1 - sass: 1.71.0 + sass: 1.72.0 optionalDependencies: fsevents: 2.3.3 dev: false @@ -8753,7 +8753,7 @@ packages: vite: optional: true dependencies: - vite: 5.0.12(sass@1.71.0) + vite: 5.0.12(sass@1.72.0) dev: false /vlq@1.0.1: diff --git a/src/components/UserMenu/UserMenu.tsx b/src/components/UserMenu/UserMenu.tsx index 2ee21b3..95b7031 100644 --- a/src/components/UserMenu/UserMenu.tsx +++ b/src/components/UserMenu/UserMenu.tsx @@ -1,4 +1,4 @@ -import {useState, useEffect} from "react"; +import { useState, useEffect } from "react"; import classNames from "classnames"; import "./UserMenu.scss"; @@ -9,7 +9,12 @@ type UserMenuProps = { logoutLabel: string; }; -const UserMenu = ({germanLabel, englishLabel, loginLabel, logoutLabel}: UserMenuProps) => { +const UserMenu = ({ + germanLabel, + englishLabel, + loginLabel, + logoutLabel, +}: UserMenuProps) => { const [isActive, setIsActive] = useState(false); const [isAuthenticated, setIsAuthenticated] = useState(false); @@ -39,25 +44,51 @@ const UserMenu = ({germanLabel, englishLabel, loginLabel, logoutLabel}: UserMenu }).then(() => { document.location.reload(); }); - } + }; return ( -