From d2dff9042eea7f0050755866819beebc592ccc44 Mon Sep 17 00:00:00 2001 From: Xerock Date: Mon, 1 Apr 2024 14:53:50 -0400 Subject: [PATCH 1/2] feat: add signpost support --- src/components/popups/Navigation.jsx | 7 ++++--- src/features/pokemon/PokemonPopup.jsx | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/popups/Navigation.jsx b/src/components/popups/Navigation.jsx index c2d42128a..56580ddf9 100644 --- a/src/components/popups/Navigation.jsx +++ b/src/components/popups/Navigation.jsx @@ -7,17 +7,18 @@ import { useMemory } from '@store/useMemory' import { useStorage } from '@store/useStorage' /** - * @param {{ lat: number, lon: number, size?: import('@mui/material').IconButtonProps['size'] }} props + * @param {{ lat?: number, lon?: number, id?: number, size?: import('@mui/material').IconButtonProps['size'] }} props * @returns */ -export function Navigation({ lat, lon, size = 'large' }) { +export function Navigation({ lat, lon, id, size = 'large' }) { const nav = useStorage((s) => s.settings.navigation) const url = useMemory((s) => s.settings.navigation[nav]?.url) return ( { )} - + Date: Mon, 1 Apr 2024 15:34:16 -0400 Subject: [PATCH 2/2] fix: remove ? from params - dev leftover --- src/components/popups/Navigation.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/popups/Navigation.jsx b/src/components/popups/Navigation.jsx index 56580ddf9..011ce0a0b 100644 --- a/src/components/popups/Navigation.jsx +++ b/src/components/popups/Navigation.jsx @@ -7,7 +7,7 @@ import { useMemory } from '@store/useMemory' import { useStorage } from '@store/useStorage' /** - * @param {{ lat?: number, lon?: number, id?: number, size?: import('@mui/material').IconButtonProps['size'] }} props + * @param {{ lat: number, lon: number, id: number, size?: import('@mui/material').IconButtonProps['size'] }} props * @returns */ export function Navigation({ lat, lon, id, size = 'large' }) {