From fa50626da99ab93923c38c95648411b1651435e3 Mon Sep 17 00:00:00 2001 From: Resaki1 Date: Tue, 30 Jan 2024 16:53:18 +0100 Subject: [PATCH] fixed svg attribute value names in tsx files --- src/components/UserMenu/UserMenu.tsx | 173 ++++++++++++++++++++++----- src/icons/Plus.tsx | 12 +- 2 files changed, 149 insertions(+), 36 deletions(-) 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 ( -
-
); -} +}; export default UserMenu; diff --git a/src/icons/Plus.tsx b/src/icons/Plus.tsx index 528a919..d62904e 100644 --- a/src/icons/Plus.tsx +++ b/src/icons/Plus.tsx @@ -1,6 +1,12 @@ export const Plus = () => ( - - - + + + );