Remove username prop from BasicWindow component
This commit is contained in:
parent
d64ec708a1
commit
25713443e2
1 changed files with 1 additions and 3 deletions
|
@ -2,17 +2,15 @@ import Header from "./Header";
|
||||||
import Footer from "./Footer";
|
import Footer from "./Footer";
|
||||||
|
|
||||||
function BasicWindow({
|
function BasicWindow({
|
||||||
username,
|
|
||||||
content,
|
content,
|
||||||
buttons,
|
buttons,
|
||||||
}: {
|
}: {
|
||||||
username: string;
|
|
||||||
content: React.ReactNode;
|
content: React.ReactNode;
|
||||||
buttons: React.ReactNode;
|
buttons: React.ReactNode;
|
||||||
}): JSX.Element {
|
}): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<div className="font-sans flex flex-col h-screen bg-white border-2 border-black overflow-auto pt-[110px]">
|
<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>
|
<div className="flex flex-col items-center flex-grow">{content}</div>
|
||||||
<Footer>{buttons}</Footer>
|
<Footer>{buttons}</Footer>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue