assessment-model/src/app/layout.tsx
Khalim Conn-Kowlessar b3c6ff2f94 Got shadcn set up
2023-06-02 11:51:05 +01:00

40 lines
1 KiB
TypeScript

import "./globals.css";
import Provider from "./components/Provider";
import Nav from "./components/Navbar";
import { ReactQueryProvider } from "./ReactQueryProvider";
import { Inter } from "next/font/google";
// If loading a variable font, you don't need to specify the font weight
const inter = Inter({
subsets: ["latin"],
display: "swap",
});
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" className={inter.className}>
<body>
<Provider>
<ReactQueryProvider>
<Nav />
{children}
</ReactQueryProvider>
</Provider>
</body>
</html>
);
}