aboutsummaryrefslogtreecommitdiff
path: root/modern/src/UpdateCheckPrompt.tsx
diff options
context:
space:
mode:
authorMatjaž Črnko <m.crnko@txt.si>2023-11-06 15:39:41 +0100
committerMatjaž Črnko <m.crnko@txt.si>2023-11-06 15:39:41 +0100
commitee802369c95cc820a12ae62b401e17a19a073311 (patch)
treefdb4cc2deb9f502955df781cdf7705e9874c0d15 /modern/src/UpdateCheckPrompt.tsx
parentd369a2d7a71e6257027802f4bd7505bb4f3fe73b (diff)
downloadtrackermap-web-ee802369c95cc820a12ae62b401e17a19a073311.tar.gz
trackermap-web-ee802369c95cc820a12ae62b401e17a19a073311.tar.bz2
trackermap-web-ee802369c95cc820a12ae62b401e17a19a073311.zip
PWA: Replace reload button with an icon
Diffstat (limited to 'modern/src/UpdateCheckPrompt.tsx')
-rw-r--r--modern/src/UpdateCheckPrompt.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/modern/src/UpdateCheckPrompt.tsx b/modern/src/UpdateCheckPrompt.tsx
index 315a65ef..a3906304 100644
--- a/modern/src/UpdateCheckPrompt.tsx
+++ b/modern/src/UpdateCheckPrompt.tsx
@@ -1,4 +1,5 @@
-import { Snackbar, Button } from '@mui/material';
+import { Snackbar, IconButton } from '@mui/material';
+import RefreshIcon from '@mui/icons-material/Refresh';
import React from 'react'
import { useTranslation } from './common/components/LocalizationProvider';
import { useAttributePreference } from './common/util/preferences';
@@ -46,9 +47,9 @@ function UpdateCheckPrompt() {
open={needRefresh}
message={t('settingsUpdateAvailable')}
action={(
- <Button onClick={() => updateServiceWorker(true)}>
- {t('settingsReload')}
- </Button>
+ <IconButton color="inherit" onClick={() => updateServiceWorker(true)}>
+ <RefreshIcon />
+ </IconButton>
)}
/>
);