Skip to content

Commit

Permalink
🐞 fix: Nested Layout Mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Strehk committed Jun 13, 2023
1 parent b5fc211 commit bd9e5de
Showing 1 changed file with 9 additions and 29 deletions.
38 changes: 9 additions & 29 deletions chase/frontend/app/participant/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,38 +1,18 @@
import "@/app/globals.scss";
import { Inter } from "next/font/google"; // TODO Remove Google Fonts and use local fonts (legal reasons)
import Navbar from "@/components/navbar/navbar";

//theme
import "primereact/resources/themes/lara-light-indigo/theme.css";
//core
import "primereact/resources/primereact.min.css";
//icons
import "primeicons/primeicons.css";


const inter = Inter({ subsets: ["latin"] });

export const metadata = {
title: "Chase",
};

export default function RootLayout({
export default function Participant_Pages_Layout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="de">
<body className={inter.className}>
<div className="flex h-screen w-screen bg-gray-light">
<div className="m-3 rounded-3xl bg-white flex shadow-md w-full overflow-hidden">
<div className="flex-1 flex">
<Navbar />
{children}
</div>
</div>
</div>
</body>
</html>
<div className="flex h-screen w-screen bg-gray-light">
<div className="m-3 rounded-3xl bg-white flex shadow-md w-full overflow-hidden">
<div className="flex-1 flex">
<Navbar />
{children}
</div>
</div>
</div>
);
}

0 comments on commit bd9e5de

Please sign in to comment.