From af685ce3cc3de3c59a0719e76960aafa204fd4a7 Mon Sep 17 00:00:00 2001 From: Luka Radenovic Date: Fri, 10 Jun 2022 09:39:24 +0200 Subject: [PATCH] Remove domain helper and fix typos --- src/common/util/domain.ts | 3 --- src/components/Header/Header.tsx | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 src/common/util/domain.ts diff --git a/src/common/util/domain.ts b/src/common/util/domain.ts deleted file mode 100644 index 7152af5..0000000 --- a/src/common/util/domain.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function getDomainName(hostName: string) { - return hostName.substring(hostName.lastIndexOf('.', hostName.lastIndexOf('.') - 1) + 1); -} diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index db86596..0faf437 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -42,7 +42,7 @@ const Header: React.FC = () => { const navigationItems = filterNavigationByDashboardRole(isAdmin); - const singOutUrl = `${HYDRA_URL}/oauth2/sessions/logout`; + const signOutUrl = `${HYDRA_URL}/oauth2/sessions/logout`; return ( <> @@ -124,7 +124,7 @@ const Header: React.FC = () => { {({ active }) => ( logOut()} - href={singOutUrl} + href={signOutUrl} className={classNames( active ? 'bg-gray-100 cursor-pointer' : '', 'block px-4 py-2 text-sm text-gray-700 cursor-pointer',