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',