Skip to content

Commit 9a5fce9

Browse files
sanghunlee-711cloudjosworks27sanghun Lee
authored
[feat] change Polyline Component to named export and version up (#60)
* feat: polyline component and sample * feat: up version * update package.json * chore: coding convention 통일 * refactor: Polyline named export로 변경 * feat: version up --------- Co-authored-by: cloud <cloud@oysterable.com> Co-authored-by: Seongcheol Jo <48130830+josworks27@users.noreply.github.com> Co-authored-by: Seongcheol Jo <josworks27@gmail.com> Co-authored-by: sanghun Lee <sanghunlee@sanghunui-MacBookPro.local>
1 parent 035d3f7 commit 9a5fce9

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function App() {
5454
### PolyLine Component
5555

5656
```js
57-
import { Map, useNaverMapInit, Marker, Poly } from "@r2don/react-naver-map";
57+
import { Map, useNaverMapInit, Marker, Polyline } from "@r2don/react-naver-map";
5858

5959
const MARKERS = [
6060
{ latitude: 37, longitude: 127 },

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@r2don/react-naver-map",
3-
"version": "0.0.19",
3+
"version": "0.0.20",
44
"author": {
55
"name": "r2don",
66
"email": "leejj2002@naver.com"

src/components/Polyline.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface PolylineProps {
1414
* Set polyline into Map obejct without rendering anything in VirtualDOM
1515
* @returns <></>
1616
*/
17-
const Polyline = ({
17+
export const Polyline = ({
1818
path,
1919
strokeColor = "#FF0000",
2020
strokeWeight = 4,
@@ -49,5 +49,3 @@ const Polyline = ({
4949

5050
return <></>;
5151
};
52-
53-
export default Polyline;

0 commit comments

Comments
 (0)