We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e831266 commit 2b7c218Copy full SHA for 2b7c218
src/renderer/components/layout/Centered.tsx
@@ -3,20 +3,17 @@ import type { FC, ReactNode } from 'react';
3
4
interface ICentered {
5
children: ReactNode;
6
- fullHeight?: boolean;
+ fullHeight: boolean;
7
}
8
9
-export const Centered: FC<ICentered> = ({
10
- fullHeight = true,
11
- ...props
12
-}: ICentered) => {
+export const Centered: FC<ICentered> = (props: ICentered) => {
13
return (
14
<Stack
15
direction="vertical"
16
align="center"
17
justify="center"
18
padding="spacious"
19
- className={fullHeight && 'h-screen'}
+ className={props.fullHeight && 'h-screen'}
20
>
21
{props.children}
22
</Stack>
0 commit comments