Added property fixedHeight
This commit is contained in:
@@ -6,11 +6,12 @@ import { Header } from "~/components/header";
|
||||
export default function Base({
|
||||
children,
|
||||
needsLogin = false,
|
||||
}: PropsWithChildren<{ needsLogin?: boolean }>) {
|
||||
fixedHeight = false,
|
||||
}: PropsWithChildren<{ needsLogin?: boolean, fixedHeight?: boolean }>) {
|
||||
return (
|
||||
<>
|
||||
<div className="flex flex-col pt-20 min-h-dvh">
|
||||
<div className="flex flex-col flex-1">
|
||||
<div className={`flex flex-col pt-20 min-h-dvh ${fixedHeight && "h-dvh"}`}>
|
||||
<div className="flex flex-col flex-1 min-h-0">
|
||||
{needsLogin ? <Guard>{children}</Guard> : children}
|
||||
</div>
|
||||
<Footer />
|
||||
|
||||
Reference in New Issue
Block a user