work on next13

This commit is contained in:
ajnart
2023-01-23 01:34:36 +09:00
parent e47bbc966c
commit 9d566330be
20 changed files with 220 additions and 208 deletions

View File

@@ -11,6 +11,7 @@ import {
import { NextLink } from '@mantine/next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import Link from 'next/link';
const useStyles = createStyles((theme) => ({
root: {
@@ -85,9 +86,9 @@ export default function Custom404() {
The config you are trying to access does not exist. Please check the URL and try again.
</Text>
<Group position="center">
<NextLink href="/">
<Link href="/">
<Button size="md">Take me back to home page</Button>
</NextLink>
</Link>
</Group>
</div>
</div>

View File

@@ -10,6 +10,8 @@ import { getServerSideTranslations } from '../tools/getServerSideTranslations';
import { dashboardNamespaces } from '../tools/translation-namespaces';
import { DashboardServerSideProps } from '../types/dashboardPageType';
import { LoadConfigComponent } from '../components/Config/LoadConfig';
import dayjs from 'dayjs';
import { useTranslation } from 'next-i18next';
export async function getServerSideProps({
req,