diff --git a/index.html b/index.html
index 12e02b8..1cecebb 100644
--- a/index.html
+++ b/index.html
@@ -8,6 +8,12 @@
type="text/css"
href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css"
/>
+
뉴웨이즈 다양성 평가 리포트
diff --git a/src/components/molecules/LocalSelector.tsx b/src/components/molecules/LocalSelector.tsx
index a394ffe..a7798b5 100644
--- a/src/components/molecules/LocalSelector.tsx
+++ b/src/components/molecules/LocalSelector.tsx
@@ -30,7 +30,7 @@ const LocalSelector = ({ selected, onClick = () => {} }: Props) => (
@media (max-width: 768px) {
width: 80%;
}
- width: 30%;
+ width: 50%;
height: 20pt;
border-radius: 5pt;
background-color: white;
@@ -58,7 +58,7 @@ const LocalSelector = ({ selected, onClick = () => {} }: Props) => (
@media (max-width: 768px) {
width: 80%;
}
- width: 30%;
+ width: 50%;
.local {
fill: ${MetroInfo[selected]?.color || "#4CC9F0"};
stroke: #080808;
diff --git a/src/components/molecules/MetroSelector.tsx b/src/components/molecules/MetroSelector.tsx
index 0687072..3d9510e 100644
--- a/src/components/molecules/MetroSelector.tsx
+++ b/src/components/molecules/MetroSelector.tsx
@@ -31,7 +31,7 @@ const MetroSelector = ({ onClick = () => {} }: Props) => {
@media (max-width: 768px) {
width: 80%;
}
- width: 30%;
+ width: 50%;
height: 20pt;
border-radius: 5pt;
background-color: white;
@@ -59,7 +59,7 @@ const MetroSelector = ({ onClick = () => {} }: Props) => {
@media (max-width: 768px) {
width: 80%;
}
- width: 30%;
+ width: 50%;
.metro {
-webkit-transition:
fill 0.2s,
diff --git a/src/components/molecules/index.ts b/src/components/molecules/index.ts
index 4e92c34..685be4c 100644
--- a/src/components/molecules/index.ts
+++ b/src/components/molecules/index.ts
@@ -1,2 +1,2 @@
-export { default as MetroSelector } from "../molecules/MetroSelector";
-export { default as LocalSelector } from "../molecules/LocalSelector";
+export { default as MetroSelector } from "./MetroSelector";
+export { default as LocalSelector } from "./LocalSelector";
diff --git a/src/components/organisms/LocalCouncilReport.tsx b/src/components/organisms/LocalCouncilReport.tsx
index b7d053a..2db6f16 100644
--- a/src/components/organisms/LocalCouncilReport.tsx
+++ b/src/components/organisms/LocalCouncilReport.tsx
@@ -2,12 +2,9 @@ import React from "react";
import { Flex, Typography } from "antd";
import { css } from "@emotion/react";
import { useParams } from "react-router-dom";
-import {
- AgeHistogram,
- PieChart,
- // type HistogramData,
- // type PieChartData,
-} from "@/components/organisms";
+import { AgeHistogram } from "@/components/organisms/Histogram";
+import { PieChart } from "@/components/organisms/PieChart";
+
import {
sampleAgeHistogramData,
samplePartyPieData,
diff --git a/src/components/organisms/MapSelector.tsx b/src/components/organisms/MapSelector.tsx
index 21e740c..4e01429 100644
--- a/src/components/organisms/MapSelector.tsx
+++ b/src/components/organisms/MapSelector.tsx
@@ -5,19 +5,19 @@ import { LocalSelector, MetroSelector } from "@/components/molecules";
import { type MetroID } from "static/MapSVGData";
import { useNavigate, useParams } from "react-router-dom";
-const LocalCouncil = ({
- idMap,
-}: {
+interface Props {
idMap: Map>;
-}) => {
+}
+
+const LocalCouncil = ({ idMap }: Props) => {
const [metroId, setMetroId] = useState();
const { metroId: metroParam } = useParams();
const navigate = useNavigate();
useEffect(() => {
if (metroParam) {
- for (let [key, value] of idMap.entries()) {
+ for (const [key, value] of idMap.entries()) {
if (value) {
- if (value.values().next().value[0] == metroParam) {
+ if (value.values().next().value[0] === metroParam) {
setMetroId(key as MetroID);
break;
}
diff --git a/src/components/pages/LocalCouncil.tsx b/src/components/pages/LocalCouncil.tsx
index 56cd459..0842e92 100644
--- a/src/components/pages/LocalCouncil.tsx
+++ b/src/components/pages/LocalCouncil.tsx
@@ -2,8 +2,8 @@ import { useEffect, useState } from "react";
import { MapSelector, LocalCouncilReport } from "@/components/organisms";
import { useParams } from "react-router-dom";
import { Element, scroller } from "react-scroll";
-import { Layout } from "../templates";
-import { MetroID } from "static/MapSVGData";
+import { Layout } from "@/components/templates";
+import { type MetroID } from "static/MapSVGData";
import axios from "@/utils/axios";
type RegionInfo = {
@@ -17,7 +17,7 @@ type LocalInfo = {
id: number;
};
-export default function LocalCouncil() {
+const LocalCouncil = () => {
const { metroId, localId } = useParams();
const [metroLocalMap, setMetroLocalMap] =
useState