diff --git a/apps/dicty-frontpage/src/app/layout/NavbarWithAuth.tsx b/apps/dicty-frontpage/src/app/layout/NavbarWithAuth.tsx
index b48d5534a7..0a9fad9b2f 100644
--- a/apps/dicty-frontpage/src/app/layout/NavbarWithAuth.tsx
+++ b/apps/dicty-frontpage/src/app/layout/NavbarWithAuth.tsx
@@ -1,28 +1,21 @@
import { Navbar, formatNavbarData } from "@dictybase/navbar"
-import { match } from "ts-pattern"
import { displayOnAuthorized, useAuthorization, authNavbarData } from "auth"
-import { Loader } from "../../common/components/Loader"
import { navTheme } from "../../common/utils/themes"
const authorizedRoles = ["content-admin"]
const NavbarWithAuth = () => {
- const { isAuthorized, isLoading } = useAuthorization({
+ const { isAuthorized } = useAuthorization({
entries: authorizedRoles,
})
- return match(isLoading)
- .with(true, () => )
- .with(false, () =>
- displayOnAuthorized({
- isAuthorized,
- authorized: (
-
- ),
- unauthorized: ,
- }),
- )
- .exhaustive()
+ return displayOnAuthorized({
+ isAuthorized,
+ authorized: (
+
+ ),
+ unauthorized: ,
+ })
}
export { NavbarWithAuth }