diff --git a/frontend/package.json b/frontend/package.json index b48dea3b..e864ea21 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -19,6 +19,7 @@ "eslint-config-next": "^13.5.2", "next": "^13.5.2", "next-auth": "^4.23.2", + "nextjs-toploader": "^1.5.3", "postcss": "^8.4.31", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/frontend/src/app/layout.tsx b/frontend/src/app/layout.tsx index fcfce5c8..0bdf805e 100644 --- a/frontend/src/app/layout.tsx +++ b/frontend/src/app/layout.tsx @@ -1,4 +1,7 @@ import Head from "next/head"; + +import NextTopLoader from "nextjs-toploader"; + import "./globals.css"; import NavBar from "@/components/NavBar/NavBar"; @@ -18,6 +21,7 @@ export default function RootLayout({ + {children} diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index d18be326..6ccb6b4d 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -1,3 +1,4 @@ +import PrimaryButton from "@/components/PrimaryButton"; import { fetchWithToken } from "@/data/fetchWithToken"; import { Organisation } from "@/types"; import Link from "next/link"; @@ -8,11 +9,8 @@ export default async function Root() {