assessment-model/src/app/layout.tsx
2023-05-30 11:41:08 +01:00

33 lines
944 B
TypeScript

import "./globals.css";
import Provider from "./components/Provider";
import Nav from "./components/Navbar";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { ReactQueryProvider } from "./ReactQueryProvider";
export const metadata = {
title: "",
description: "Start your retrofit journey today",
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
// TODO: With this, the NavBar is being applied to the route layout so across all pages, including the sign in page, which we
// possibly don't want, or at least don't want it to look exactly like this, with the same links and ability to sign out
// on small screens.
return (
<html lang="en">
<body>
<Provider>
<ReactQueryProvider>
<Nav pageName="Home"></Nav>
{children}
</ReactQueryProvider>
</Provider>
</body>
</html>
);
}