search
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user