Remove username prop from BasicWindow component

This commit is contained in:
Davenludd 2024-03-18 21:33:20 +01:00
parent d64ec708a1
commit 25713443e2

View file

@ -2,17 +2,15 @@ import Header from "./Header";
import Footer from "./Footer";
function BasicWindow({
username,
content,
buttons,
}: {
username: string;
content: React.ReactNode;
buttons: React.ReactNode;
}): JSX.Element {
return (
<div className="font-sans flex flex-col h-screen bg-white border-2 border-black overflow-auto pt-[110px]">
<Header username={username} />
<Header />
<div className="flex flex-col items-center flex-grow">{content}</div>
<Footer>{buttons}</Footer>
</div>