Skip to content

Commit

Permalink
fixed eslint errors, updated dependencies, improved performance
Browse files Browse the repository at this point in the history
  • Loading branch information
JustFly1984 committed Oct 15, 2020
1 parent 9175c3a commit d7403fc
Show file tree
Hide file tree
Showing 60 changed files with 918 additions and 887 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Alexey Lyakhov
Copyright (c) 2020 Alexey Lyakhov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
20 changes: 4 additions & 16 deletions packages/react-google-maps-api-gatsby-example/gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ const PropTypes = require('prop-types')
const { Provider } = require('react-redux')
const { Map: IMap } = require('immutable')

const {
createStore,
compose,
applyMiddleware
} = require('redux')
const { createStore, compose, applyMiddleware } = require('redux')

const thunk = require('redux-thunk').default
const reducers = require('./src/reducers').default
Expand All @@ -17,26 +13,18 @@ exports.wrapRootElement = ({ element }) => {
const store = createStore(
reducers,
initialState,
compose(
applyMiddleware(thunk)
)
compose(applyMiddleware(thunk))
)

return store
}

const store = configureStore()

const ConnectedRootElement = (
<Provider
store={store}
>
{element}
</Provider>
)
const ConnectedRootElement = <Provider store={store}>{element}</Provider>

ConnectedRootElement.propTypes = {
element: PropTypes.node.isRequired
element: PropTypes.node.isRequired,
}

return ConnectedRootElement
Expand Down
18 changes: 9 additions & 9 deletions packages/react-google-maps-api-gatsby-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@
"access": "public"
},
"dependencies": {
"@babel/core": "7.11.6",
"@babel/core": "7.12.0",
"@babel/node": "7.10.5",
"@babel/polyfill": "7.11.5",
"@babel/preset-env": "7.11.5",
"@babel/preset-env": "7.12.0",
"@babel/preset-react": "7.10.4",
"@babel/runtime": "7.11.2",
"@babel/runtime": "7.12.0",
"@getify/eslint-plugin-proper-arrows": "10.0.0",
"@react-google-maps/api": "1.12.1",
"@react-google-maps/api": "1.13.0",
"@sentry/browser": "5.26.0",
"@types/node": "14.11.8",
"cross-env": "^7.0.2",
"gatsby": "2.24.74",
"gatsby": "2.24.78",
"gatsby-plugin-favicon": "3.1.6",
"gatsby-plugin-purgecss": "5.0.0",
"gatsby-plugin-react-helmet": "3.3.14",
"gatsby-plugin-sitemap": "2.4.16",
"gatsby-plugin-typescript": "2.4.21",
"gatsby-plugin-sitemap": "2.4.17",
"gatsby-plugin-typescript": "2.4.22",
"immutable": "3.8.2",
"intl": "1.2.5",
"prettier": "2.1.2",
"prop-types": "15.7.2",
"react": "16.13.1",
"react-dom": "16.13.1",
"react": "16.14.0",
"react-dom": "16.14.0",
"react-helmet": "6.1.0",
"react-redux": "7.2.1",
"react-refresh": "0.8.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export const TRANSIT_TOGGLE = 'TRANSIT_TOGGLE'
export const GROUND_TOGGLE = 'GROUND_TOGGLE'
export const OPTIONS_TOGGLE = 'OPTIONS_TOGGLE'
export const OVERLAY_VIEW_TOGGLE = 'OVERLAY_VIEW_TOGGLE'
export const STANDALONE_SEARCHBOX_TOGGLE = 'STANDALONE_SEARCHBOX_TOGGLE'
export const STANDALONE_SEARCH_BOX_TOGGLE = 'STANDALONE_SEARCH_BOX_TOGGLE'
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
GROUND_TOGGLE,
OPTIONS_TOGGLE,
OVERLAY_VIEW_TOGGLE,
STANDALONE_SEARCHBOX_TOGGLE,
STANDALONE_SEARCH_BOX_TOGGLE,
} from '../action-types'

export const changeLanguage = createAction(CHANGE_LANGUAGE)
Expand All @@ -34,6 +34,6 @@ export const toggleTransit = createAction(TRANSIT_TOGGLE)
export const toggleGround = createAction(GROUND_TOGGLE)
export const toggleOptions = createAction(OPTIONS_TOGGLE)
export const toggleOverlayView = createAction(OVERLAY_VIEW_TOGGLE)
export const toggleStandaloneSearchbox = createAction(
STANDALONE_SEARCHBOX_TOGGLE
export const toggleStandaloneSearchBox = createAction(
STANDALONE_SEARCH_BOX_TOGGLE
)
Loading

0 comments on commit d7403fc

Please sign in to comment.