Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
2b2a5c7
Update germen translation de.json
ReuschelCGN Mar 19, 2024
2c711a6
Update de.json
ReuschelCGN Mar 19, 2024
87b8f3f
Update de.json
ReuschelCGN Mar 19, 2024
761abae
Add missing fr translations
Petap0w Mar 19, 2024
7b74ebb
Merge pull request #987 from ReuschelCGN/translation
TurtIeSocks Mar 20, 2024
748391e
Update GeoURI to drop a pin when opened with Google Maps
frett Mar 25, 2024
6b2829e
Switch replace to replaceAll for generating navigation buttons
frett Mar 25, 2024
3e002fa
style: run prettier --write
frett Mar 25, 2024
8c0f384
Merge branch 'main' into develop
TurtIeSocks Mar 25, 2024
4b4e99d
Merge pull request #990 from frett/patch-1
TurtIeSocks Mar 25, 2024
2aca24e
chore: sync config [skip ci]
turtlesocks-bot Mar 25, 2024
7db2ec7
Merge branch 'develop' of https://github.com/WatWowMap/ReactMap into …
TurtIeSocks Mar 25, 2024
00de211
chore: update permission images
TurtIeSocks Mar 25, 2024
440dc22
Merge pull request #991 from WatWowMap/update-perm-images
TurtIeSocks Mar 25, 2024
ab2fa0a
Update Popup.jsx
kamieniarz Mar 26, 2024
c914a1f
Update index.jsx
kamieniarz Mar 26, 2024
d8c410b
Update index.jsx
kamieniarz Mar 26, 2024
fbcc9b1
Update index.jsx
kamieniarz Mar 28, 2024
389881b
Update index.jsx
kamieniarz Mar 28, 2024
ba9d47f
Update Popup.jsx
kamieniarz Mar 28, 2024
a09a4df
chore(deps): bump express from 4.18.2 to 4.19.2
dependabot[bot] Mar 29, 2024
ec8a237
Update Popup.jsx
kamieniarz Mar 29, 2024
7b7f09a
Update Popup.jsx
kamieniarz Mar 29, 2024
a4b5375
Merge pull request #988 from Petap0w/fr
TurtIeSocks Mar 30, 2024
f4b1ac4
Merge pull request #992 from kamieniarz/patch-2
TurtIeSocks Mar 30, 2024
f6f3b7d
Merge pull request #993 from WatWowMap/dependabot/npm_and_yarn/expres…
TurtIeSocks Mar 30, 2024
704423b
fix: locate translations / unit of measurement
TurtIeSocks Apr 1, 2024
b93095d
Add roleLink info to Blocked page
Apr 1, 2024
d34b69a
feat: add icon overrides in config for troubleshooting/trolling
TurtIeSocks Apr 1, 2024
9214d92
chore: sync config [skip ci]
turtlesocks-bot Apr 1, 2024
5f87694
fix(lint): prettier lint
Apr 1, 2024
32f1766
Merge pull request #996 from XerockXMG/develop
TurtIeSocks Apr 1, 2024
69ba172
Merge pull request #995 from WatWowMap/locate-control-fix
TurtIeSocks Apr 2, 2024
00d9bfc
fix: remove useeffect dep
TurtIeSocks Apr 2, 2024
3c983d3
fix: unnecessary call
TurtIeSocks Apr 2, 2024
d01beb0
fix: react leaflet locate control fixes
TurtIeSocks Apr 3, 2024
9588a89
chore(deps-dev): bump vite from 5.0.12 to 5.0.13
dependabot[bot] Apr 3, 2024
2f16b82
Merge pull request #998 from WatWowMap/dependabot/npm_and_yarn/vite-5…
TurtIeSocks Apr 5, 2024
969f946
chore(deps): bump tar from 6.2.0 to 6.2.1
dependabot[bot] Apr 11, 2024
4fcc100
fix: tutorial crash issue
TurtIeSocks Apr 11, 2024
4cb5882
fix: semi fix for the leaflet.locatecontrol issue
TurtIeSocks Apr 11, 2024
17cbff7
Merge pull request #1001 from WatWowMap/dependabot/npm_and_yarn/tar-6…
TurtIeSocks Apr 11, 2024
e08e3f2
fix: hopefully final fix for leaflet.locatecontrol
TurtIeSocks Apr 12, 2024
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
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
"@turf/destination": "^6.5.0",
"@turf/distance": "^6.5.0",
"@turf/helpers": "^6.5.0",
"@turtlesocks/react-leaflet.locatecontrol": "^0.1.1",
"bcrypt": "^5.0.1",
"body-parser": "^1.20.2",
"chalkercli": "https://github.com/TurtIeSocks/chalkercli.git",
Expand All @@ -136,7 +137,7 @@
"discord.js": "^14.7.1",
"dlv": "^1.1.3",
"dotenv": "^16.3.1",
"express": "^4.17.3",
"express": "^4.19.2",
"express-mysql-session": "^3.0.0",
"express-rate-limit": "^5.2.6",
"express-session": "^1.17.3",
Expand All @@ -150,7 +151,7 @@
"i18next-http-backend": "^1.4.0",
"knex": "^2.4.2",
"leaflet": "1.9.4",
"leaflet.locatecontrol": "0.73.0",
"leaflet.locatecontrol": "0.81.0",
"lodash": "^4.17.21",
"moment-timezone": "^0.5.43",
"morgan": "^1.10.0",
Expand Down Expand Up @@ -210,7 +211,7 @@
"rollup-plugin-delete": "^2.0.0",
"semantic-release": "^19.0.5",
"typescript": "^5.3.3",
"vite": "5.0.12",
"vite": "5.0.13",
"vite-plugin-checker": "0.6.4"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/config/.configref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24070
24122
27 changes: 25 additions & 2 deletions packages/locales/lib/human/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@
"global_search_portals": "Füge den Namen des Portals ein...",
"global_search_nests": "Füge den Namen des Nestes ein...",
"global_search_raids": "Füge den Namen des Raid Boss ein...",
"global_search_invasions": "Füge den Rüpel Typ, Namen oder Belohnungs-Pokémon Namen ein...",
"raid_level_badges": "Raid Level Abzeichen",
"options": "Optionen",
"profile": "Profil",
Expand All @@ -301,6 +302,7 @@
"invasion_icons": "Invasion Icons",
"pokemon_timers": "Alle Pokemon Timer",
"dialog_filter_footer_apply_to_all_width": 2,
"dialog_filter_footer_adv_menu_width": 2,
"dialog_filter_footer_disable_all_width": 2,
"dialog_filter_footer_enable_all_width": 2,
"dialog_filter_footer_help_width": 2,
Expand Down Expand Up @@ -362,6 +364,7 @@
"exclude_invasion_multi": "{{invasion}} ausschließen",
"stardust": "Sternenstaub",
"webhook_footer_help_width": 4,
"webhook_footer_feedback_width": 4,
"webhook_footer_close_width": 4,
"webhook_footer_add_new_width": 4,
"dialog_filter_footer_next_width": 2,
Expand Down Expand Up @@ -424,7 +427,7 @@
"webhook_success_gym": "Raids, Eier, und Team Wechsel Alarme wurden hinzugefügt!",
"slot_changes": "Platzänderungen",
"confirm_delete": "Dadurch wird die Tracking-Funktion für dieses Profil entfernt, bist du sicher?",
"confirm_copy": "Wähle das Profil, in das du \"{{profile}}\" kopieren möchtest. Dadurch wird das ausgewählte Profil vollständig überschrieben.",
"confirm_copy": "Wähle das Profil, das du zu \"{{profile}}\" kopieren möchtest, dadurch wird dieses Profil vollständig überschrieben.",
"webhook_error": "{{name}} konnte das nicht verarbeiten.\nBitte versuche es später nochmals.",
"profile_error": "Muss eindeutig und gültig sein",
"team_0": "Neutral",
Expand Down Expand Up @@ -526,6 +529,8 @@
"session_expired_body": "Deine Sitzung ist abgelaufen",
"old_client_title": "Veraltet",
"old_client_body": "Eine neue Version der Map ist verfügbar",
"early_old_client_title": "veraltet",
"early_old_client_body": "Eine alte Version dieser Map könnte im Browser zwischengespeichert sein, lösche den Cache, bevor diese Map verwendet werden kann.",
"refresh": "Aktualisieren",
"search_raids": "Suche nach Raids",
"search_eggs": "Suche nach Eier",
Expand Down Expand Up @@ -637,6 +642,7 @@
"showcase_rankings": "Showcase-Ranking",
"showcase_rankings_subtitle": "Zeigt die Top-Rankingliste für einen Showcase an einem Pokestop an.",
"no_access": "Kein Zugriff",
"cooldown": "Cooldown",
"alerts": "Benachrichtigungen",
"alert_manager": "Benachrichtigungs Manager",
"menu": "Menü",
Expand All @@ -651,6 +657,7 @@
"download": "download",
"playground": "Playground",
"locale": "Sprachen",
"saved": "gespeichert",
"admin_subtitle": "codebasierter WYSIWYG-Editor für benutzerdefinierten Komponenten",
"reported_error": "Dieser Fehler wurde dem Server mit Kennung gemeldet",
"dark_mode": "Dunkelmodus",
Expand Down Expand Up @@ -734,5 +741,21 @@
"reset_s2cells": "S2 Zellen zurücksetzen",
"reset_spawnpoints": "Spawnpoints zurücksetzen",
"reset_submission_cells": "Submission Zellen zurücksetzen",
"hisuian": "Hisui"
"hisuian": "Hisui",
"spacial_rend_range": "Raumschlag Effekt Bereich",
"key": "Schlüssel",
"ai": "KI",
"human": "Human",
"locales": "Locales",
"instructions": "Anleitung",
"locale_instructions_1": "Wähle im Dropdown-Menü eine Sprache aus.",
"locale_instructions_2": "Gib in der Spalte \"Human\" die gewünschten Übersetzungen ein.",
"locale_instructions_3": "Klicke auf die Schaltfläche \"$t(download)\", um eine JSON-Datei herunterzuladen.",
"locale_instructions_4": "Fork den GitHub-Repo-Link unten",
"locale_instructions_5": "Erstelle einen neuen Branch und benennen ihn mit der Sprache, die übersetzt werden soll.",
"locale_instructions_6": "Ersetze den Inhalt von \"packages/locales/lib/human/{{lng}}.json\" durch die heruntergeladene Datei.",
"locale_instructions_7": "Erstellen eine neue Pull Request auf den \"develop\" Branch.",
"locale_instructions_8": "Warte bis die Pull-Anfrage überprüft und gemerged wurde.",
"enter_translation": "Übersetzung eingeben",
"individual_filters": "Teilweise gefiltert"
}
34 changes: 33 additions & 1 deletion packages/locales/lib/human/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -736,5 +736,37 @@
"reset_spawnpoints": "Réinitialiser Points d'apparition",
"reset_submission_cells": "Réinitialiser Wayfarer",
"hisuian": "de Hisui",
"spacial_rend_range": "Portée Spatio-Rift"
"spacial_rend_range": "Portée Spatio-Rift",
"ai": "IA",
"device_audio": "Son d’appareil",
"early_old_client_body": "Une ancienne version du client de l'app pourrait être en mémoire dans votre navigateur. Veuillez vider le cache de votre navigateur.",
"early_old_client_title": "Version obsolète",
"egg_audio": "Son d’œuf",
"enter_translation": "Saisir la traduction",
"global_search_invasions": "Entrez le type de Sbire, son nom ou Pokémon de récompense...",
"gym_audio": "Son d'arène'",
"human": "Humain",
"individual_filters": "Filtres partiels",
"instructions": "Instructions",
"invasion_audio": "Son d’invasion",
"key": "Clé",
"locale_instructions_1": "Sélectionner une langue du menu déroulant",
"locale_instructions_2": "Entrer les traductions désirées dans la colonne \"Humain\"",
"locale_instructions_3": "Cliquer sur le bouton \"Télécharger\" pour obtenir le fichier JSON",
"locale_instructions_4": "Faire un clone du repo GitHub ci-dessous",
"locale_instructions_5": "Créer une branche et la nommer comme la langue traduite",
"locale_instructions_6": "Remplacer le contenu de \"packages/locales/lib/human/{{lng}}.json\" avec celui du fichier téléchargé.",
"locale_instructions_7": "Créer une demande de tirage \"PR\"",
"locale_instructions_8": "Attendre que la PR soit examinée et intégrée",
"locales": "Langues",
"misc_audio": "Son divers",
"nest_audio": "Son de nid",
"pokemon_audio": "Son de pokémon",
"pokestop_audio": "Son de pokéstop",
"raid_audio": "Son de raid",
"reward_audio": "Son de quête",
"spawnpoint_audio": "Son de point d’apparition",
"team_audio": "Son d’équipe",
"type_audio": "Son de type",
"weather_audio": "Son de météo"
}
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@types/react": "^18.2.20",
"@types/react-dom": "^18.0.9",
"@turf/helpers": "^6.5.0",
"express": "^4.17.3",
"express": "^4.19.2",
"knex": "^2.4.2",
"loglevel": "^1.8.1",
"objection": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"@rm/logger": "*"
},
"devDependencies": {
"vite": "5.0.12"
"vite": "5.0.13"
}
}
Binary file modified public/images/perms/backups.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/devices.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/eventStops.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/gymBadges.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/gyms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/invasions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/iv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/lures.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/nestSubmissions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/nests.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/pokemon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/pokestops.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/portals.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/pvp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/quests.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/raids.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/routes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/s2cells.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/scanAreas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/scanCells.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/showcaseRankings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/spawnpoints.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/stats.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/submissionCells.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/perms/weather.png
2 changes: 2 additions & 0 deletions server/src/configs/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -1804,6 +1804,7 @@
"__format": "json"
},
"defaultIcons": {},
"overrides": {},
"cacheHrs": {
"__name": "ICONS_CACHE_HRS",
"__format": "number"
Expand Down Expand Up @@ -1997,6 +1998,7 @@
"__format": "number"
},
"defaultAudio": {},
"overrides": {},
"customizable": {
"__name": "AUDIO_CUSTOMIZABLE",
"__format": "json"
Expand Down
4 changes: 3 additions & 1 deletion server/src/configs/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -907,14 +907,15 @@
},
{
"name": "GeoURI",
"url": "geo:{x},{y}"
"url": "geo:{x},{y}?q={x},{y}"
}
],
"icons": {
"Read_More_Here": "https://github.com/WatWowMap/ReactMap/wiki/06.-Icons-Configuration",
"customizable": [],
"styles": [],
"defaultIcons": {},
"overrides": {},
"cacheHrs": 1,
"sizes": {
"device": {
Expand Down Expand Up @@ -982,6 +983,7 @@
"audio": {
"cacheHrs": 1,
"defaultAudio": {},
"overrides": {},
"customizable": [],
"styles": [
{
Expand Down
23 changes: 16 additions & 7 deletions src/components/Global.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { useMemory } from '@store/useMemory'

function ApplyGlobal() {
const online = useMemory((s) => s.online)

return (
<GlobalStyles
styles={(theme) => {
Expand Down Expand Up @@ -70,23 +69,33 @@ function ApplyGlobal() {
duration: theme.transitions.duration.standard,
easing: theme.transitions.easing.easeInOut,
}),
fontSize: 17,
},
'.leaflet-bar a:active, .leaflet-bar a:focus, .leaflet-bar a:hover': {
backgroundColor: darken(
theme.palette.grey[grey],
darkMode ? 0.2 : 0.1,
),
},
'.leaflet-control-locate.requesting span': {
color: theme.palette.text.primary,
animation: 'leaflet-control-locate-spin 2s linear infinite',
},
'.leaflet-control-locate.active a': {
color: 'rgb(32, 116, 182)',
},
'.leaflet-control-locate.active.following a': {
color: 'rgb(252, 132, 40)',
},
'.leaflet-control-locate a .leaflet-control-locate-spinner': {
backgroundImage: `url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="${encodeURIComponent(
theme.palette.text.primary,
)}" d="M304 48a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48 368a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm208-208a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM96 256a48 48 0 1 0-96 0 48 48 0 0 0 96 0zm13 99a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm294 0a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM109 61a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"/></svg>')`,
},
'.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out':
{
lineHeight: '25px !important',
},
[theme.breakpoints.down('sm')]: {
'.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out':
{
lineHeight: '30px !important',
},
},
'.leaflet-bar a.leaflet-disabled': {
backgroundColor: lighten(theme.palette.grey[grey], 0.2),
},
Expand Down
4 changes: 3 additions & 1 deletion src/components/popups/Navigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export function Navigation({ lat, lon, size = 'large' }) {
const url = useMemory((s) => s.settings.navigation[nav]?.url)
return (
<IconButton
href={url.replace('{x}', lat.toString()).replace('{y}', lon.toString())}
href={url
.replaceAll('{x}', lat.toString())
.replaceAll('{y}', lon.toString())}
target="_blank"
rel="noreferrer"
size={size}
Expand Down
8 changes: 4 additions & 4 deletions src/components/virtual/SelectorItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ export function SelectorItem({
: 'error.dark'

const handleClick = React.useCallback(() => {
const newFilter = { ...filter }
const newFilter = { all: false, enabled: false, ...filter }
// red => green => blue => red
if (filter.all && hasAll) {
if (newFilter.all && hasAll) {
newFilter.all = false
newFilter.enabled = !easyMode
} else if (filter.enabled) {
} else if (newFilter.enabled) {
newFilter.enabled = false
} else {
if (hasAll) newFilter.all = true
Expand All @@ -79,7 +79,7 @@ export function SelectorItem({

const status =
hasAll && !easyMode
? filter?.all || filter.enabled
? filter?.all || filter?.enabled
? filter?.all && filter?.enabled
? true
: null
Expand Down
5 changes: 3 additions & 2 deletions src/features/profile/Permissions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,13 @@ function PermCard({ perm }) {
if (value)
return (
<Box
height="250px"
minHeight="250px"
sx={{
background: `url(/${permImageDir}/${perm}.png)`,
backgroundSize: 'cover',
backgroundSize: 'contain',
backgroundPosition: 'center',
backgroundRepeat: 'no-repeat',
aspectRatio: '1/1',
}}
/>
)
Expand Down
4 changes: 3 additions & 1 deletion src/features/scanner/Popup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export function ScanOnDemandPopup({ children, mode }) {
<List>
<StyledListItemText
className="no-leaflet-margin"
secondary={t('scan_next_choose')}
secondary={t(
mode === 'scanZone' ? 'scan_zone_choose' : 'scan_next_choose',
)}
/>
<DividerWithMargin />
{context.scannerType !== 'mad' && children}
Expand Down
5 changes: 2 additions & 3 deletions src/features/webhooks/human/Location.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ const Location = () => {

React.useEffect(
() => () => {
lc.stop()
useWebhookStore.setState({ location: [0, 0] })
},
[],
Expand Down Expand Up @@ -120,9 +119,9 @@ const Location = () => {
<Button
size="small"
variant="contained"
color="secondary"
color={color}
onClick={() => lc._onClick()}
startIcon={<MyLocation color={color} />}
startIcon={<MyLocation sx={{ color: 'white' }} />}
>
{t('my_location')}
</Button>
Expand Down
Loading