diff --git a/src/components/organisms/MapSelector.tsx b/src/components/organisms/MapSelector.tsx
index 6dbdeac..e3129c6 100644
--- a/src/components/organisms/MapSelector.tsx
+++ b/src/components/organisms/MapSelector.tsx
@@ -1,4 +1,4 @@
-import { Button, Flex } from "antd";
+import { Button, Flex, Breadcrumb } from "antd";
import { css } from "@emotion/react";
import {
LocalSelector,
@@ -15,7 +15,7 @@ interface Props {
}
const MapSelector = ({ idMap, type = "local" }: Props) => {
- const { metroName } = useParams();
+ const { metroName, localName } = useParams();
const navigate = useNavigate();
return (
@@ -30,6 +30,41 @@ const MapSelector = ({ idMap, type = "local" }: Props) => {
>
{metroName && type === "local" ? (
<>
+
+
뉴웨이즈 다양성 리포트
+ ),
+ onClick: () => navigate(`/localCouncil`),
+ },
+ ] as { title: string | JSX.Element; onClick: () => void }[]
+ )
+ .concat(
+ metroName
+ ? [
+ {
+ // eslint-disable-next-line jsx-a11y/anchor-is-valid
+ title: {metroName},
+ onClick: () => navigate(`/localCouncil/${metroName}`),
+ },
+ ]
+ : [],
+ )
+ .concat(
+ localName ? [{ title: localName, onClick: () => {} }] : [],
+ )}
+ />
+
{
{
- const idData = idMap.get(metroName as MetroID)?.get(localName);
+ onClick={local => {
+ const idData = idMap.get(metroName as MetroID)?.get(local);
if (!idData) return;
- navigate(`/localCouncil/${metroName}/${localName}`);
+ navigate(`/localCouncil/${metroName}/${local}`);
}}
/>
{
{
- const idData = idMap.get(metroName as MetroID)?.get(localName);
+ onClick={local => {
+ const idData = idMap.get(metroName as MetroID)?.get(local);
if (!idData) return;
- navigate(`/localCouncil/${metroName}/${localName}`);
+ navigate(`/localCouncil/${metroName}/${local}`);
}}
/>
>