From aa9a4c54261fdcf5988c927b42aef481f1d40267 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Mon, 2 Aug 2021 19:06:24 +0200 Subject: [PATCH] eslint fixes --- components/Shell.tsx | 68 +++++++++++++++++------------ public/calendso-logo-white-word.svg | 2 +- public/calendso-logo-word-dark.svg | 2 +- public/calendso-white.svg | 2 +- public/integrations/zoom.svg | 2 +- 5 files changed, 43 insertions(+), 33 deletions(-) diff --git a/components/Shell.tsx b/components/Shell.tsx index 039ed7952e..904f226e2b 100644 --- a/components/Shell.tsx +++ b/components/Shell.tsx @@ -9,7 +9,6 @@ import { CalendarIcon, ClockIcon, PuzzleIcon, - SupportIcon, CogIcon, ChatAltIcon, LogoutIcon, @@ -66,10 +65,6 @@ export default function Shell(props) { }); }, [telemetry]); - const logoutHandler = () => { - signOut({ redirect: false }).then(() => router.push("/auth/logout")); - }; - if (!loading && !session) { router.replace("/auth/login"); } @@ -243,9 +238,7 @@ function UserDropdown({session, small, bottom} : {session: any, small?: boolean, "w-64 z-10 absolute mt-1 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-200 focus:outline-none" )}>
- + View public page
@@ -253,26 +246,42 @@ function UserDropdown({session, small, bottom} : {session: any, small?: boolean, {({ active }) => ( - )} {({ active }) => ( {({ active }) => ( - - + + active ? "bg-gray-100 text-gray-900" : "text-gray-700", + "flex px-4 py-2 text-sm font-medium" + )}> + diff --git a/public/calendso-logo-white-word.svg b/public/calendso-logo-white-word.svg index 6e91c4b631..b6195547bd 100644 --- a/public/calendso-logo-white-word.svg +++ b/public/calendso-logo-white-word.svg @@ -3,7 +3,7 @@ \ No newline at end of file + \ No newline at end of file diff --git a/public/integrations/zoom.svg b/public/integrations/zoom.svg index 6c6ed03cb2..57c3b2cfa6 100644 --- a/public/integrations/zoom.svg +++ b/public/integrations/zoom.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file