some changes
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { Container, ContainerProps } from "@mantine/core";
|
||||
import { Container, ContainerProps, Box } from "@mantine/core";
|
||||
import useRouterConfig from "@/features/core/hooks/use-router-config";
|
||||
import BackButton from "@/features/core/components/back-button";
|
||||
import SettingsButton from "@/features/core/components/settings-button";
|
||||
|
||||
interface PageProps extends ContainerProps, React.PropsWithChildren {
|
||||
noPadding?: boolean;
|
||||
@@ -16,8 +18,15 @@ const Page = ({ children, noPadding, fullWidth, ...props }: PageProps) => {
|
||||
m={0}
|
||||
maw={fullWidth ? '100%' : 600}
|
||||
mx="auto"
|
||||
pos="relative"
|
||||
{...props}
|
||||
>
|
||||
{header.collapsed && header.withBackButton && (
|
||||
<BackButton offsetY={0} />
|
||||
)}
|
||||
{header.collapsed && header.settingsLink && (
|
||||
<SettingsButton to={header.settingsLink} offsetY={0} />
|
||||
)}
|
||||
{children}
|
||||
</Container>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user