refactor(mantine): use new content layout for terms

This commit is contained in:
Sonny
2024-10-31 01:27:30 +01:00
committed by Sonny
parent 5453b7f965
commit 8d474f74eb

View File

@@ -2,7 +2,7 @@ import { Link } from '@inertiajs/react';
import { route } from '@izzyjs/route/client';
import { ReactNode } from 'react';
import { Trans, useTranslation } from 'react-i18next';
import LegalContentLayout from '~/components/layouts/legal_content_layout';
import { MantineContentLayout } from '~/components/layouts/mantine/mantine_content_layout';
function TermsPage() {
const { t } = useTranslation('terms');
@@ -53,5 +53,7 @@ function TermsPage() {
);
}
TermsPage.layout = (page: ReactNode) => <LegalContentLayout children={page} />;
TermsPage.layout = (page: ReactNode) => (
<MantineContentLayout children={page} />
);
export default TermsPage;