Skip to content

Commit

Permalink
[feat] change Polyline Component to named export and version up (#60)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: Seongcheol Jo <[email protected]>
Co-authored-by: Seongcheol Jo <[email protected]>
Co-authored-by: sanghun Lee <[email protected]>
  • Loading branch information
5 people authored Oct 17, 2024
1 parent 035d3f7 commit 9a5fce9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@r2don/react-naver-map",
"version": "0.0.19",
"version": "0.0.20",
"author": {
"name": "r2don",
"email": "[email protected]"
Expand Down
4 changes: 1 addition & 3 deletions src/components/Polyline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -49,5 +49,3 @@ const Polyline = ({

return <></>;
};

export default Polyline;

0 comments on commit 9a5fce9

Please sign in to comment.