This commit is contained in:
2023-03-16 14:11:46 +00:00
parent 1dcb2b6c3d
commit 53128a92de
22 changed files with 358 additions and 68 deletions

View File

@@ -1,7 +1,5 @@
import { Button } from "@mantine/core";
import { Paragraph } from "@prisma/client";
import { GetServerSidePropsContext, GetServerSidePropsResult } from "next";
import { useRouter } from "next/router";
import ParagraphGrid from "../components/ParagraphGrid/ParagraphGrid";
import { prismaClient } from "../lib/db";
@@ -14,15 +12,7 @@ interface ListProps {
}
export default function HomePage(props: ListProps) {
const router = useRouter();
return (
<ParagraphGrid
title="DS-Next"
titleAction={<Button onClick={() => router.push("/statistic")}>Statistic</Button>}
{...props}
/>
);
return <ParagraphGrid title="DS-Next" {...props} />;
}
export async function getServerSideProps(