Skip to content
Snippets Groups Projects
Commit af685ce3 authored by Luka's avatar Luka
Browse files

Remove domain helper and fix typos

parent e5f06fc7
No related branches found
No related tags found
No related merge requests found
export function getDomainName(hostName: string) {
return hostName.substring(hostName.lastIndexOf('.', hostName.lastIndexOf('.') - 1) + 1);
}
......@@ -42,7 +42,7 @@ const Header: React.FC<HeaderProps> = () => {
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<HeaderProps> = () => {
{({ active }) => (
<a
onClick={() => 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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment