Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions src/components/Topbar/Preferences/PreferencesMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import LogoutIcon from '@mui/icons-material/Logout';
import MapIcon from '@mui/icons-material/Map';
import MenuBookIcon from '@mui/icons-material/MenuBook';
import SatelliteAltIcon from '@mui/icons-material/SatelliteAlt';
import TerrainIcon from '@mui/icons-material/Terrain';
import {
Expand Down Expand Up @@ -83,9 +84,7 @@ export const PreferencesMenu: React.FC<PreferencesMenuProps> = ({
</ToggleButton>
</ToggleButtonGroup>
</Stack>

<Divider />

<Stack spacing={1}>
<Typography>{t('preferences.enableAudioAlerts')}</Typography>
<AlertVolumeToggle
Expand All @@ -94,6 +93,21 @@ export const PreferencesMenu: React.FC<PreferencesMenuProps> = ({
/>
</Stack>

<Divider />

<Stack spacing={1}>
Comment thread
romainantes marked this conversation as resolved.
Outdated
<Button
href={t('preferences.userGuideUrl')}
Comment thread
romainantes marked this conversation as resolved.
Outdated
target="_blank"
rel="noopener noreferrer"
variant="outlined"
startIcon={<MenuBookIcon />}
fullWidth
>
{t('preferences.userGuide')}
</Button>
</Stack>

{
<>
<Divider />
Expand Down
4 changes: 3 additions & 1 deletion src/locales/de/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@
"mapOsm": "OpenStreetMap",
"mapIgn": "IGN (France)",
"mapSatellite": "Satellit",
"enableAudioAlerts": "Audio-Warnungen aktivieren"
"enableAudioAlerts": "Audio-Warnungen aktivieren",
"userGuide": "Benutzerhandbuch",
"userGuideUrl": "https://pyronear.notion.site/Guide-d-utilisation-plateforme-Pyronear-376425b63668818ebd17da60b20cc770"
}
}
4 changes: 3 additions & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@
"mapOsm": "OpenStreetMap",
"mapIgn": "IGN (France)",
"mapSatellite": "Satellite",
"enableAudioAlerts": "Enable Audio Alerts"
"enableAudioAlerts": "Enable Audio Alerts",
"userGuide": "User guide",
"userGuideUrl": "https://pyronear.notion.site/Guide-d-utilisation-plateforme-Pyronear-376425b63668818ebd17da60b20cc770"
},
"map": {
"layerControl": "Map Layers",
Expand Down
4 changes: 3 additions & 1 deletion src/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@
"mapOsm": "OpenStreetMap",
"mapIgn": "IGN (Francia)",
"mapSatellite": "Satélite",
"enableAudioAlerts": "Activar el sonido de las alertas"
"enableAudioAlerts": "Activar el sonido de las alertas",
"userGuide": "Guía del usuario",
"userGuideUrl": "https://pyronear.notion.site/Guide-d-utilisation-plateforme-Pyronear-376425b63668818ebd17da60b20cc770"
},
"map": {
"layerControl": "Capas",
Expand Down
4 changes: 3 additions & 1 deletion src/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@
"mapOsm": "OpenStreetMap",
"mapIgn": "IGN (France)",
"mapSatellite": "Satellite",
"enableAudioAlerts": "Activer le son des alertes"
"enableAudioAlerts": "Activer le son des alertes",
"userGuide": "Guide utilisateur",
"userGuideUrl": "https://pyronear.notion.site/Guide-d-utilisation-plateforme-Pyronear-376425b63668818ebd17da60b20cc770"
},
"map": {
"layerControl": "Couches",
Expand Down
Loading