-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
現状以下のようにしているpointsを
const pointCatalog: PointMeta[] = [
{
url:
"https://raw.githubusercontent.com/Code-for-Funabashi/open-data-parser/main/data/kosodate-map/syokibohoikuichiran.json",
type: "小規模保育園",
icon: greenIcon,
},
// 略
];をJSONへの移行をすることで、新 Index.tsx(旧 KosodateMap.tsx)の可読性向上に寄与できると考えます。
例
import React, { FC } from "react";
import Map from "components/Map/Map";
import points from "data/points/points";
const Index: FC = () => {
return <Map pointCatalog={points()} />;
};
export default Index;Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels