Skip to content
This repository has been archived by the owner on Feb 2, 2025. It is now read-only.

Commit

Permalink
Merge pull request #19 from SystemEngineeringTeam/fix-modal-router
Browse files Browse the repository at this point in the history
fix: モーダルのrouterを修正
  • Loading branch information
SatooRu65536 authored Nov 17, 2023
2 parents 3f61d61 + 1e87441 commit 7ec256b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/_component/header/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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}
>
{"- "}
Expand Down

0 comments on commit 7ec256b

Please sign in to comment.