Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] change Polyline Component to named export and version up #60

Merged
merged 8 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Loading