diff --git a/src/app/components/PageLoader.tsx b/src/app/components/PageLoader.tsx new file mode 100644 index 000000000..6c36d4b5d --- /dev/null +++ b/src/app/components/PageLoader.tsx @@ -0,0 +1,9 @@ +import { Flex, Spinner } from '@radix-ui/themes'; + +export function PageLoader() { + return ( + + + + ); +} diff --git a/src/app/layout.tsx b/src/app/layout.tsx index c9912d2c8..bb5b82e8a 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -7,11 +7,11 @@ import { Roboto_Flex } from 'next/font/google'; import { usePathname } from 'next/navigation'; import { ReactNode, Suspense } from 'react'; import { Footer } from '../components/Footer'; -import { Loader } from '../components/Loader'; import Navbar, { NAVBAR_HEIGHT } from '../components/Navbar'; import { Party3 } from '../components/Party3'; import * as App from '../stores/app'; import { Checks } from './components/Checks'; +import { PageLoader } from './components/PageLoader'; import './layout.css'; config(); @@ -75,15 +75,7 @@ export default function RootLayout({ children }: RootLayoutProps) { - - - - } - > - {children} - + }>{children} {!isEmbed &&