From 1e8744187a224e4de64cac5136b592258c7a32a4 Mon Sep 17 00:00:00 2001 From: SatooRu65536 Date: Fri, 17 Nov 2023 12:53:39 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=83=A2=E3=83=BC=E3=83=80=E3=83=AB?= =?UTF-8?q?=E3=81=AErouter=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/_component/header/modal.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/_component/header/modal.tsx b/app/_component/header/modal.tsx index 829a941..7b1a4cc 100644 --- a/app/_component/header/modal.tsx +++ b/app/_component/header/modal.tsx @@ -3,12 +3,12 @@ import { useRouter } from "next/navigation"; import { CloseIcon } from "@/components/icons"; import { css } from "@/styled-system/css"; -import { Post } from "@/types"; +import { Page } from "@/types"; type Props = { opened: boolean; close: () => void; - pages: Post[]; + pages: Page[]; }; export default function Modal({ opened, close, pages }: Props) { @@ -71,7 +71,7 @@ export default function Modal({ opened, close, pages }: Props) { position: "relative", cursor: "pointer", })} - onClick={() => router.push(`/posts/${page.id}`)} + onClick={() => router.push(page.path)} key={page.id} > {"- "}