Skip to content

Commit d7403fc

Browse files
committed
fixed eslint errors, updated dependencies, improved performance
1 parent 9175c3a commit d7403fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+918
-887
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Alexey Lyakhov
3+
Copyright (c) 2020 Alexey Lyakhov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/react-google-maps-api-gatsby-example/gatsby-ssr.js

+4-16
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ const PropTypes = require('prop-types')
33
const { Provider } = require('react-redux')
44
const { Map: IMap } = require('immutable')
55

6-
const {
7-
createStore,
8-
compose,
9-
applyMiddleware
10-
} = require('redux')
6+
const { createStore, compose, applyMiddleware } = require('redux')
117

128
const thunk = require('redux-thunk').default
139
const reducers = require('./src/reducers').default
@@ -17,26 +13,18 @@ exports.wrapRootElement = ({ element }) => {
1713
const store = createStore(
1814
reducers,
1915
initialState,
20-
compose(
21-
applyMiddleware(thunk)
22-
)
16+
compose(applyMiddleware(thunk))
2317
)
2418

2519
return store
2620
}
2721

2822
const store = configureStore()
2923

30-
const ConnectedRootElement = (
31-
<Provider
32-
store={store}
33-
>
34-
{element}
35-
</Provider>
36-
)
24+
const ConnectedRootElement = <Provider store={store}>{element}</Provider>
3725

3826
ConnectedRootElement.propTypes = {
39-
element: PropTypes.node.isRequired
27+
element: PropTypes.node.isRequired,
4028
}
4129

4230
return ConnectedRootElement

packages/react-google-maps-api-gatsby-example/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@
1414
"access": "public"
1515
},
1616
"dependencies": {
17-
"@babel/core": "7.11.6",
17+
"@babel/core": "7.12.0",
1818
"@babel/node": "7.10.5",
1919
"@babel/polyfill": "7.11.5",
20-
"@babel/preset-env": "7.11.5",
20+
"@babel/preset-env": "7.12.0",
2121
"@babel/preset-react": "7.10.4",
22-
"@babel/runtime": "7.11.2",
22+
"@babel/runtime": "7.12.0",
2323
"@getify/eslint-plugin-proper-arrows": "10.0.0",
24-
"@react-google-maps/api": "1.12.1",
24+
"@react-google-maps/api": "1.13.0",
2525
"@sentry/browser": "5.26.0",
2626
"@types/node": "14.11.8",
2727
"cross-env": "^7.0.2",
28-
"gatsby": "2.24.74",
28+
"gatsby": "2.24.78",
2929
"gatsby-plugin-favicon": "3.1.6",
3030
"gatsby-plugin-purgecss": "5.0.0",
3131
"gatsby-plugin-react-helmet": "3.3.14",
32-
"gatsby-plugin-sitemap": "2.4.16",
33-
"gatsby-plugin-typescript": "2.4.21",
32+
"gatsby-plugin-sitemap": "2.4.17",
33+
"gatsby-plugin-typescript": "2.4.22",
3434
"immutable": "3.8.2",
3535
"intl": "1.2.5",
3636
"prettier": "2.1.2",
3737
"prop-types": "15.7.2",
38-
"react": "16.13.1",
39-
"react-dom": "16.13.1",
38+
"react": "16.14.0",
39+
"react-dom": "16.14.0",
4040
"react-helmet": "6.1.0",
4141
"react-redux": "7.2.1",
4242
"react-refresh": "0.8.3",

packages/react-google-maps-api-gatsby-example/src/action-types.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ export const TRANSIT_TOGGLE = 'TRANSIT_TOGGLE'
1313
export const GROUND_TOGGLE = 'GROUND_TOGGLE'
1414
export const OPTIONS_TOGGLE = 'OPTIONS_TOGGLE'
1515
export const OVERLAY_VIEW_TOGGLE = 'OVERLAY_VIEW_TOGGLE'
16-
export const STANDALONE_SEARCHBOX_TOGGLE = 'STANDALONE_SEARCHBOX_TOGGLE'
16+
export const STANDALONE_SEARCH_BOX_TOGGLE = 'STANDALONE_SEARCH_BOX_TOGGLE'

packages/react-google-maps-api-gatsby-example/src/actions/app.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
GROUND_TOGGLE,
1717
OPTIONS_TOGGLE,
1818
OVERLAY_VIEW_TOGGLE,
19-
STANDALONE_SEARCHBOX_TOGGLE,
19+
STANDALONE_SEARCH_BOX_TOGGLE,
2020
} from '../action-types'
2121

2222
export const changeLanguage = createAction(CHANGE_LANGUAGE)
@@ -34,6 +34,6 @@ export const toggleTransit = createAction(TRANSIT_TOGGLE)
3434
export const toggleGround = createAction(GROUND_TOGGLE)
3535
export const toggleOptions = createAction(OPTIONS_TOGGLE)
3636
export const toggleOverlayView = createAction(OVERLAY_VIEW_TOGGLE)
37-
export const toggleStandaloneSearchbox = createAction(
38-
STANDALONE_SEARCHBOX_TOGGLE
37+
export const toggleStandaloneSearchBox = createAction(
38+
STANDALONE_SEARCH_BOX_TOGGLE
3939
)

0 commit comments

Comments
 (0)