From c1669ae13f8e46bba06e7fc198eb6249f9d82c62 Mon Sep 17 00:00:00 2001 From: Fran McDade Date: Wed, 30 Oct 2024 18:16:36 +1000 Subject: [PATCH] feat: update profile hook (#178) --- .../Actions/components/Authentication/authentication.tsx | 4 +--- src/hooks/authentication/profile/types.ts | 1 - src/hooks/authentication/profile/useProfile.ts | 4 +--- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/authentication.tsx b/src/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/authentication.tsx index 49f683b9..ad0b2b03 100644 --- a/src/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/authentication.tsx +++ b/src/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/authentication.tsx @@ -3,7 +3,6 @@ import { ButtonProps as MButtonProps, IconButton as MIconButton, IconButtonProps as MIconButtonProps, - Skeleton, } from "@mui/material"; import Router from "next/router"; import React, { ElementType } from "react"; @@ -23,9 +22,8 @@ export const Authentication = ({ Button, closeMenu, }: AuthenticationProps): JSX.Element | null => { - const { isLoading, profile } = useProfile(); + const { profile } = useProfile(); if (!authenticationEnabled) return null; - if (isLoading) return ; if (profile) return ; return (