diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-04-25 21:53:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-25 21:53:42 +0200 |
| commit | 128f76f7fd7c8abb41a3bbbd9f1980cbc20ae7a5 (patch) | |
| tree | add513890005233a7784466797bfe6f5052e9eeb /frontend/src/containers/app/map/controls | |
| parent | 128a1db017545597a5c035b7960eb3fd36b5f987 (diff) | |
| parent | 57b54b59ed74ec37338ae26b3864d051255aba49 (diff) | |
build: Flatten project structure
This change updates the project structure to become flattened.
Previously, the simulator, frontend and API each lived into their own directory.
With this change, all modules of the project live in the top-level directory of
the repository.
Diffstat (limited to 'frontend/src/containers/app/map/controls')
| -rw-r--r-- | frontend/src/containers/app/map/controls/ScaleIndicatorContainer.js | 12 | ||||
| -rw-r--r-- | frontend/src/containers/app/map/controls/ZoomControlContainer.js | 19 |
2 files changed, 0 insertions, 31 deletions
diff --git a/frontend/src/containers/app/map/controls/ScaleIndicatorContainer.js b/frontend/src/containers/app/map/controls/ScaleIndicatorContainer.js deleted file mode 100644 index fa3b9d22..00000000 --- a/frontend/src/containers/app/map/controls/ScaleIndicatorContainer.js +++ /dev/null @@ -1,12 +0,0 @@ -import { connect } from 'react-redux' -import ScaleIndicatorComponent from '../../../../components/app/map/controls/ScaleIndicatorComponent' - -const mapStateToProps = (state) => { - return { - scale: state.map.scale, - } -} - -const ScaleIndicatorContainer = connect(mapStateToProps)(ScaleIndicatorComponent) - -export default ScaleIndicatorContainer diff --git a/frontend/src/containers/app/map/controls/ZoomControlContainer.js b/frontend/src/containers/app/map/controls/ZoomControlContainer.js deleted file mode 100644 index ddc68cc7..00000000 --- a/frontend/src/containers/app/map/controls/ZoomControlContainer.js +++ /dev/null @@ -1,19 +0,0 @@ -import { connect } from 'react-redux' -import { zoomInOnCenter } from '../../../../actions/map' -import ZoomControlComponent from '../../../../components/app/map/controls/ZoomControlComponent' - -const mapStateToProps = (state) => { - return { - mapScale: state.map.scale, - } -} - -const mapDispatchToProps = (dispatch) => { - return { - zoomInOnCenter: (zoomIn) => dispatch(zoomInOnCenter(zoomIn)), - } -} - -const ZoomControlContainer = connect(mapStateToProps, mapDispatchToProps)(ZoomControlComponent) - -export default ZoomControlContainer |
