diff --git a/apps/dicty-frontpage/src/app/layout/FooterWithAuth.tsx b/apps/dicty-frontpage/src/app/layout/FooterWithAuth.tsx index fcf2caaf11..1d06f04063 100644 --- a/apps/dicty-frontpage/src/app/layout/FooterWithAuth.tsx +++ b/apps/dicty-frontpage/src/app/layout/FooterWithAuth.tsx @@ -1,24 +1,17 @@ import { Footer } from "@dictybase/footer" -import { match } from "ts-pattern" import { displayOnAuthorized, useAuthorization, authFooterData } from "auth" -import { Loader } from "../../common/components/Loader" const authorizedRoles = ["content-admin"] const FooterWithAuth = () => { - const { isAuthorized, isLoading } = useAuthorization({ + const { isAuthorized } = useAuthorization({ entries: authorizedRoles, }) - return match(isLoading) - .with(true, () => ) - .with(false, () => - displayOnAuthorized({ - isAuthorized, - authorized: