Skip to content

Commit 2b7c218

Browse files
committed
refactor: migrate to text inputs to primer
Signed-off-by: Adam Setch <[email protected]>
1 parent e831266 commit 2b7c218

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/renderer/components/layout/Centered.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@ import type { FC, ReactNode } from 'react';
33

44
interface ICentered {
55
children: ReactNode;
6-
fullHeight?: boolean;
6+
fullHeight: boolean;
77
}
88

9-
export const Centered: FC<ICentered> = ({
10-
fullHeight = true,
11-
...props
12-
}: ICentered) => {
9+
export const Centered: FC<ICentered> = (props: ICentered) => {
1310
return (
1411
<Stack
1512
direction="vertical"
1613
align="center"
1714
justify="center"
1815
padding="spacious"
19-
className={fullHeight && 'h-screen'}
16+
className={props.fullHeight && 'h-screen'}
2017
>
2118
{props.children}
2219
</Stack>

0 commit comments

Comments
 (0)