diff options
author | Anton Tananaev <anton@traccar.org> | 2022-04-17 19:25:46 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-04-17 19:25:46 -0700 |
commit | fa3ecdcd8f181c01279a0712dc795f7f2cf909ee (patch) | |
tree | c1f7b4aabd1591499b69a3ba31a463218f6b3e3a /modern/src/map/PositionsMap.js | |
parent | 7d3e4252fb09da9b1d466ac704ba4aa301317ef9 (diff) | |
download | trackermap-web-fa3ecdcd8f181c01279a0712dc795f7f2cf909ee.tar.gz trackermap-web-fa3ecdcd8f181c01279a0712dc795f7f2cf909ee.tar.bz2 trackermap-web-fa3ecdcd8f181c01279a0712dc795f7f2cf909ee.zip |
Fix localization issues
Diffstat (limited to 'modern/src/map/PositionsMap.js')
-rw-r--r-- | modern/src/map/PositionsMap.js | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/modern/src/map/PositionsMap.js b/modern/src/map/PositionsMap.js index cabce3df..d82347f1 100644 --- a/modern/src/map/PositionsMap.js +++ b/modern/src/map/PositionsMap.js @@ -10,6 +10,7 @@ import store from '../store'; import StatusView from './StatusView'; import theme from '../theme'; import { getStatusColor } from '../common/formatter'; +import { LocalizationProvider } from '../LocalizationProvider'; const PositionsMap = ({ positions }) => { const id = 'positions'; @@ -41,14 +42,16 @@ const PositionsMap = ({ positions }) => { const placeholder = document.createElement('div'); ReactDOM.render( <Provider store={store}> - <ThemeProvider theme={theme}> - <StatusView - deviceId={feature.properties.deviceId} - onShowDetails={(positionId) => history.push(`/position/${positionId}`)} - onShowHistory={() => history.push('/replay')} - onEditClick={(deviceId) => history.push(`/device/${deviceId}`)} - /> - </ThemeProvider> + <LocalizationProvider> + <ThemeProvider theme={theme}> + <StatusView + deviceId={feature.properties.deviceId} + onShowDetails={(positionId) => history.push(`/position/${positionId}`)} + onShowHistory={() => history.push('/replay')} + onEditClick={(deviceId) => history.push(`/device/${deviceId}`)} + /> + </ThemeProvider> + </LocalizationProvider> </Provider>, placeholder, ); |