Skip to content

Commit

Permalink
fixed some silly bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ozer550 committed Aug 30, 2021
1 parent 9c45920 commit 0383ecd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"daisyui": "^1.14.0",
"next": "latest",
"prop-types": "^15.7.2",
"proptypes": "^1.1.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-google-maps": "^9.4.5",
Expand Down
12 changes: 3 additions & 9 deletions pages/electronics-gifting-cities.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,15 @@ import * as laptopCitiesData from '../data/laptop-cities.json';

///The MHF office at 1543 E Palmdale Blvd. Suite E, Palmdale, CA 93550 to (Default zoom)
const MAP_CENTER_MHF_OFFICE = {
latitude: 34.5794,
longitude: -118.1164,
lat: 34.5794,
lng: -118.1164,
};
const DEFAULT_ZOOM = 4;

function Map() {
const [selectedCity, setSelectedCity] = useState(null);
return (
<GoogleMap
defaultCenter={{
lat: MAP_CENTER_MHF_OFFICE.latitude,
lng: MAP_CENTER_MHF_OFFICE.longitude,
}}
defaultZoom={DEFAULT_ZOOM}
>
<GoogleMap defaultCenter={MAP_CENTER_MHF_OFFICE} defaultZoom={DEFAULT_ZOOM}>
{laptopCitiesData.cities.map((city) => (
<Marker
key={laptopCitiesData.name}
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2827,6 +2827,11 @@ prop-types@^15.5.8, prop-types@^15.7.2:
object-assign "^4.1.1"
react-is "^16.8.1"

proptypes@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/proptypes/-/proptypes-1.1.0.tgz#78b3828a5aa6bb1308939e0de3c6044dfd4bd239"
integrity sha1-eLOCilqmuxMIk54N48YETf1L0jk=

public-encrypt@^4.0.0:
version "4.0.3"
resolved "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz"
Expand Down

0 comments on commit 0383ecd

Please sign in to comment.