Merged in ENCOA-316-ENCOA-317 (pull request #141)

Fix login page having a Card

Approved-by: Tiago Ribeiro
This commit is contained in:
Francisco Lima
2025-01-29 08:59:55 +00:00
committed by Tiago Ribeiro
2 changed files with 6 additions and 7 deletions

View File

@@ -329,6 +329,7 @@ export default function ExamPage({
useEffect(() => {
setOnFocusLayerMouseEnter(() => () => setShowAbandonPopup(true));
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
useEffect(() => {

View File

@@ -32,7 +32,7 @@ export default function App({ Component, pageProps }: AppProps) {
setLoading(true);
};
const end = () => {
setLoading(false);
setLoading(false);
};
Router.events.on("routeChangeStart", start);
Router.events.on("routeChangeComplete", end);
@@ -59,13 +59,11 @@ export default function App({ Component, pageProps }: AppProps) {
}
}, [setIsSidebarMinimized]);
return (
return pageProps?.user ? (
<Layout user={pageProps.user} entities={entities} refreshPage={loading}>
{loading ? (
<UserProfileSkeleton />
) : (
<Component {...pageProps} />
)}
{loading ? <UserProfileSkeleton /> : <Component {...pageProps} />}
</Layout>
) : (
<Component {...pageProps} />
);
}