Skip to content

Commit

Permalink
🔖 release 2.0.4 from PR #138 and #139
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgia Bosello committed Oct 24, 2023
1 parent 329cb19 commit baad761
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,24 +189,18 @@ const onMapChange = ({ bounds, zoom }) => {
To run the project locally, clone the repo and run:

```bash
# in the root directory
yarn install
yarn dev
```

```bash
# in another tab
## with NextJS and SSR
cd docs/nextjs
yarn install
yarn dev

## with CRA and CSR
# in another tab (with NextJS and SSR)
cd docs
yarn install
yarn dev
```

Do your changes to `src/` or `docs/src` or `docs/nextjs/src` directory, commits all files (`yarn.lock` and ones in `dist` too) and open a PR.
Do your changes to `src/` or `docs/src` directory, commits all files in the root directory (`yarn.lock` and ones in `dist` too) and open a PR.

## 💻 Built with

Expand Down
1 change: 1 addition & 0 deletions docs/.env.prod
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEXT_PUBLIC_MEDIA_URL=/google-maps-react-markers
2 changes: 1 addition & 1 deletion docs/src/components/marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Marker = ({ className, lat, lng, markerId, onClick, ...props }: MarkerProp
// eslint-disable-next-line @next/next/no-img-element, jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
<img
className={className}
src="/marker-pin.png"
src={`${process.env.NEXT_PUBLIC_MEDIA_URL}/marker-pin.png`}
// lat={lat}
// lng={lng}
onClick={(e) => (onClick ? onClick(e, { markerId, lat, lng }) : null)}
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-maps-react-markers",
"version": "2.0.3",
"version": "2.0.4",
"description": "Google Maps library that accepts markers as react components, works with React 18+ and it is fully typed.",
"author": "Giorgia Bosello",
"license": "MIT",
Expand Down Expand Up @@ -34,8 +34,6 @@
"commit": "cz",
"release": "yarn build && yarn release-it",
"link:self": "yarn yalc publish && yarn link",
"predeploy": "cd docs && yarn install && yarn build",
"deploy": "gh-pages -d docs/build",
"final:publish": "yarn build && npm publish"
},
"files": [
Expand Down

0 comments on commit baad761

Please sign in to comment.