diff --git a/frontend/src/components/mii/list/index.tsx b/frontend/src/components/mii/list/index.tsx index 6c3ddba..5cfaa97 100644 --- a/frontend/src/components/mii/list/index.tsx +++ b/frontend/src/components/mii/list/index.tsx @@ -9,6 +9,7 @@ import { Icon } from "@iconify/react"; import LikeButton from "../../like-button"; import { useStore } from "@nanostores/react"; import { session } from "../../../session"; +import Carousel from "../../carousel"; interface ApiResponse { totalCount: number; @@ -79,7 +80,7 @@ export default function MiiList({ parentPage, userId }: Props) { )} - + {parentPage !== "admin" ? - + : `${import.meta.env.VITE_API_URL}/mii/${mii.id}/image?type=image${index}`), + ]} + />} @@ -134,7 +141,7 @@ export default function MiiList({ parentPage, userId }: Props) { { - await fetch(`/api/admin/accept-mii?id=${mii.id}`, { method: "PATCH" }); + await fetch(`${import.meta.env.VITE_API_URL}/api/admin/accept-mii?id=${mii.id}`, { method: "PATCH", credentials: "include" }); }} className="cursor-pointer text-zinc-400 hover:text-green-500 transition-colors p-1 bg-white rounded-md shadow-sm border border-zinc-200 hover:border-green-500" title="Accept Mii"