✨ Add board pages
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
export { default, getServerSideProps } from '../board/[id]';
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export { default, getServerSideProps } from '../board';
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
import { GetServerSideProps } from 'next';
|
||||||
|
|
||||||
|
export default function BoardPage() {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<h1>BoardPage</h1>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getServerSideProps: GetServerSideProps = async () => {
|
||||||
|
console.log('getServerSideProps');
|
||||||
|
return {
|
||||||
|
props: {},
|
||||||
|
};
|
||||||
|
};
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
import { Title } from '@mantine/core';
|
||||||
|
import { GetServerSideProps } from 'next';
|
||||||
|
import { MainLayout } from '~/components/layout/main';
|
||||||
|
|
||||||
|
export default function BoardPage() {
|
||||||
|
return (
|
||||||
|
<MainLayout>
|
||||||
|
<Title order={1}>BoardPage</Title>
|
||||||
|
</MainLayout>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getServerSideProps: GetServerSideProps = async () => {
|
||||||
|
console.log('getServerSideProps');
|
||||||
|
return {
|
||||||
|
props: {},
|
||||||
|
};
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user