From 06274e5f0842642fb08167c2a1d93b47671854bf Mon Sep 17 00:00:00 2001 From: spaenleh Date: Wed, 8 Mar 2023 16:56:26 +0100 Subject: [PATCH] fix: use `CustomInitialLoader` on first load --- src/components/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 875b89c1e..e34387ed3 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -3,7 +3,7 @@ import { useLocation } from 'react-router'; import { Route, Routes } from 'react-router-dom'; import { saveUrlForRedirection } from '@graasp/sdk'; -import { Loader, withAuthorization } from '@graasp/ui'; +import { CustomInitialLoader, withAuthorization } from '@graasp/ui'; import { DOMAIN, SIGN_IN_PATH } from '../config/constants'; import { @@ -30,7 +30,7 @@ const App: FC = () => { const { data: currentMember, isLoading } = useCurrentUserContext(); if (isLoading) { - return ; + return ; } const withAuthorizationProps = {