diff options
author | Anton Tananaev <anton@traccar.org> | 2022-08-01 17:47:56 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-08-01 17:47:56 -0700 |
commit | a78261fee1483e447c3d162f2961aac7b5df65e8 (patch) | |
tree | b3e7bcde6fff779daf72ee3a204d1f5b3737ff8e /modern/src | |
parent | a15dd2a6a947672b576f474ad80a8902f1fb2ac2 (diff) | |
download | trackermap-web-a78261fee1483e447c3d162f2961aac7b5df65e8.tar.gz trackermap-web-a78261fee1483e447c3d162f2961aac7b5df65e8.tar.bz2 trackermap-web-a78261fee1483e447c3d162f2961aac7b5df65e8.zip |
Update dependencies
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/index.js | 39 | ||||
-rw-r--r-- | modern/src/map/main/PoiMap.js | 2 |
2 files changed, 20 insertions, 21 deletions
diff --git a/modern/src/index.js b/modern/src/index.js index 2f5f509b..d89d917e 100644 --- a/modern/src/index.js +++ b/modern/src/index.js @@ -1,6 +1,6 @@ import 'typeface-roboto'; import React from 'react'; -import ReactDOM from 'react-dom'; +import { createRoot } from 'react-dom/client'; import { BrowserRouter } from 'react-router-dom'; import { Provider } from 'react-redux'; import { CssBaseline, ThemeProvider, StyledEngineProvider } from '@mui/material'; @@ -16,25 +16,24 @@ import ServerProvider from './ServerProvider'; preloadImages(); -ReactDOM.render( - ( - <Provider store={store}> - <LocalizationProvider> - <StyledEngineProvider injectFirst> - <ThemeProvider theme={theme}> - <CssBaseline /> - <ServerProvider> - <BrowserRouter> - <Navigation /> - </BrowserRouter> - </ServerProvider> - <ErrorHandler /> - <NativeInterface /> - </ThemeProvider> - </StyledEngineProvider> - </LocalizationProvider> - </Provider> - ), document.getElementById('root'), +const root = createRoot(document.getElementById('root')); +root.render( + <Provider store={store}> + <LocalizationProvider> + <StyledEngineProvider injectFirst> + <ThemeProvider theme={theme}> + <CssBaseline /> + <ServerProvider> + <BrowserRouter> + <Navigation /> + </BrowserRouter> + </ServerProvider> + <ErrorHandler /> + <NativeInterface /> + </ThemeProvider> + </StyledEngineProvider> + </LocalizationProvider> + </Provider>, ); serviceWorkerRegistration.register(); diff --git a/modern/src/map/main/PoiMap.js b/modern/src/map/main/PoiMap.js index 6215b45e..f3b4eea2 100644 --- a/modern/src/map/main/PoiMap.js +++ b/modern/src/map/main/PoiMap.js @@ -79,7 +79,7 @@ const PoiMap = () => { } }; } - return null; + return () => {}; }, [data]); return null; |