diff --git a/src/components/ClubSummary.tsx b/src/components/ClubSummary.tsx index 0547bd1..030afc8 100644 --- a/src/components/ClubSummary.tsx +++ b/src/components/ClubSummary.tsx @@ -62,7 +62,9 @@ export const ClubSummary = (props: Props) => { trigger={['click']} menu={{ items: mapMenu, - onClick: (e) => openWebMapRaw(e.key as MapType, info.geo!), + onClick: (e) => openWebMapRaw(e.key as MapType, { + ...info.geo!, + }), }} > }> diff --git a/src/page/ClubEvents.tsx b/src/page/ClubEvents.tsx index 688a885..0d76fc3 100644 --- a/src/page/ClubEvents.tsx +++ b/src/page/ClubEvents.tsx @@ -1,30 +1,17 @@ -import { Avatar, Button, Drawer, Typography } from "antd"; import { useLoaderData } from "react-router"; -import type { ClubDetail, IEventInfo } from "../types"; -import { useState } from "react"; -import { ChangeBackground } from "../components/ChangeBackground"; +import type { ClubDetail } from "../types"; import { ClubEvenList } from "../components/ClubEventList"; +import { ClubSummary } from "../components/ClubSummary"; export const ClubEventsPage = () => { const { info } = useLoaderData<{ info: ClubDetail; - events: IEventInfo[]; - total: number; }>(); - const [isArticleOpen, setIsArticleOpen] = useState(false); return (