diff options
author | Matjaž Črnko <m.crnko@txt.si> | 2023-11-06 15:42:28 +0100 |
---|---|---|
committer | Matjaž Črnko <m.crnko@txt.si> | 2023-11-06 15:42:28 +0100 |
commit | f81bf48cb9cd3541bf8f111770fdd42c4d8e0955 (patch) | |
tree | 5616dcf81b6378dc1c5b9a569f30766e808431aa /modern | |
parent | ee802369c95cc820a12ae62b401e17a19a073311 (diff) | |
download | trackermap-web-f81bf48cb9cd3541bf8f111770fdd42c4d8e0955.tar.gz trackermap-web-f81bf48cb9cd3541bf8f111770fdd42c4d8e0955.tar.bz2 trackermap-web-f81bf48cb9cd3541bf8f111770fdd42c4d8e0955.zip |
PWA: Rename to UpdateController
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/App.jsx | 4 | ||||
-rw-r--r-- | modern/src/UpdateController.tsx (renamed from modern/src/UpdateCheckPrompt.tsx) | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modern/src/App.jsx b/modern/src/App.jsx index 631b9718..4fe34f64 100644 --- a/modern/src/App.jsx +++ b/modern/src/App.jsx @@ -8,7 +8,7 @@ import SocketController from './SocketController'; import CachingController from './CachingController'; import { useEffectAsync } from './reactHelper'; import { sessionActions } from './store'; -import UpdateCheckPrompt from './UpdateCheckPrompt'; +import UpdateController from './UpdateController'; const useStyles = makeStyles(() => ({ page: { @@ -49,7 +49,7 @@ const App = () => { <> <SocketController /> <CachingController /> - <UpdateCheckPrompt /> + <UpdateController /> <div className={classes.page}> <Outlet /> </div> diff --git a/modern/src/UpdateCheckPrompt.tsx b/modern/src/UpdateController.tsx index a3906304..0f1b800b 100644 --- a/modern/src/UpdateCheckPrompt.tsx +++ b/modern/src/UpdateController.tsx @@ -6,7 +6,7 @@ import { useAttributePreference } from './common/util/preferences'; import { useRegisterSW } from 'virtual:pwa-register/react' // Based on https://vite-pwa-org.netlify.app/frameworks/react.html -function UpdateCheckPrompt() { +function UpdateController() { const t = useTranslation(); const serviceWorkerUpdateInterval = useAttributePreference('serviceWorkerUpdateInterval', 3600000); @@ -55,4 +55,4 @@ function UpdateCheckPrompt() { ); } -export default UpdateCheckPrompt; +export default UpdateController; |