significant refactor
This commit is contained in:
@@ -7,9 +7,19 @@ interface PageProps extends ContainerProps, React.PropsWithChildren {
|
||||
|
||||
const Page = ({ children, noPadding, ...props }: PageProps) => {
|
||||
const { header } = useRouterConfig();
|
||||
return <Container px={noPadding ? 0 : 'md'} pt={header.collapsed ? 60 : 0} pb={20} m={0} maw={600} mx='auto' {...props}>
|
||||
return (
|
||||
<Container
|
||||
px={noPadding ? 0 : "md"}
|
||||
pt={header.collapsed ? 60 : 0}
|
||||
pb={20}
|
||||
m={0}
|
||||
maw={600}
|
||||
mx="auto"
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</Container>
|
||||
}
|
||||
</Container>
|
||||
);
|
||||
};
|
||||
|
||||
export default Page;
|
||||
|
||||
Reference in New Issue
Block a user