diff --git a/README.md b/README.md index 3bd15f6..f100a91 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ function App() { ### PolyLine Component ```js -import { Map, useNaverMapInit, Marker, Poly } from "@r2don/react-naver-map"; +import { Map, useNaverMapInit, Marker, Polyline } from "@r2don/react-naver-map"; const MARKERS = [ { latitude: 37, longitude: 127 }, diff --git a/package.json b/package.json index e5e7e7b..ede6fde 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@r2don/react-naver-map", - "version": "0.0.19", + "version": "0.0.20", "author": { "name": "r2don", "email": "leejj2002@naver.com" diff --git a/src/components/Polyline.tsx b/src/components/Polyline.tsx index 725a304..56a40ee 100644 --- a/src/components/Polyline.tsx +++ b/src/components/Polyline.tsx @@ -14,7 +14,7 @@ interface PolylineProps { * Set polyline into Map obejct without rendering anything in VirtualDOM * @returns <> */ -const Polyline = ({ +export const Polyline = ({ path, strokeColor = "#FF0000", strokeWeight = 4, @@ -49,5 +49,3 @@ const Polyline = ({ return <>; }; - -export default Polyline;