diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 2e85169..12fc9fa 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -197,7 +197,7 @@ export default function App() { setShowLicenseSuccess(true); } // Always refresh auth on startup to pick up server-side subscription changes - refreshAuth().catch(() => { }); + refreshAuth().catch(() => {}); }, []); // eslint-disable-line react-hooks/exhaustive-deps const savedSearches = useSavedSearches(user?.id ?? null); @@ -271,8 +271,8 @@ export default function App() { { page: activePage }, '', pageToPath(activePage, inviteCode ?? undefined) + - window.location.search + - window.location.hash + window.location.search + + window.location.hash ); } const handlePopState = (e: PopStateEvent) => { @@ -355,8 +355,8 @@ export default function App() { initialLoading={initialLoading} theme={theme} pendingInfoFeature={null} - onClearPendingInfoFeature={() => { }} - onNavigateTo={() => { }} + onClearPendingInfoFeature={() => {}} + onNavigateTo={() => {}} screenshotMode ogMode={isOgMode} initialTravelTime={urlState.travelTime} diff --git a/frontend/src/components/map/DualHistogram.tsx b/frontend/src/components/map/DualHistogram.tsx index 77e45e2..2b0c04b 100644 --- a/frontend/src/components/map/DualHistogram.tsx +++ b/frontend/src/components/map/DualHistogram.tsx @@ -119,10 +119,7 @@ export function DualHistogram({ })} {showMeanMarker && ( -
+
- {feature.detail && onShowInfo && ( - showText ? ( + {feature.detail && + onShowInfo && + (showText ? ( onShowInfo(feature)} title={t('filters.aboutData')} size="md"> @@ -42,8 +43,7 @@ export function FeatureActions({ onShowInfo(feature)} title={t('filters.aboutData')} size="md"> - ) - )} + ))} {showText ? ( onTogglePin(callbackName)} diff --git a/frontend/src/components/ui/Header.tsx b/frontend/src/components/ui/Header.tsx index bf0675d..830b71c 100644 --- a/frontend/src/components/ui/Header.tsx +++ b/frontend/src/components/ui/Header.tsx @@ -97,8 +97,8 @@ export default function Header({ const [copied, setCopied] = useState(false); const [sharing, setSharing] = useState(false); const [menuOpen, setMenuOpen] = useState(false); - const [isDashboardTabletSidebarWidth, setIsDashboardTabletSidebarWidth] = useState(() => - window.matchMedia(DASHBOARD_TABLET_SIDEBAR_QUERY).matches + const [isDashboardTabletSidebarWidth, setIsDashboardTabletSidebarWidth] = useState( + () => window.matchMedia(DASHBOARD_TABLET_SIDEBAR_QUERY).matches ); const useSidebarNav = isMobile || (activePage === 'dashboard' && isDashboardTabletSidebarWidth); diff --git a/frontend/src/hooks/useDeckLayers.ts b/frontend/src/hooks/useDeckLayers.ts index 556bcda..876a781 100644 --- a/frontend/src/hooks/useDeckLayers.ts +++ b/frontend/src/hooks/useDeckLayers.ts @@ -268,27 +268,27 @@ export function useDeckLayers({ // eslint-disable-next-line @typescript-eslint/no-explicit-any const pieProps: any = isEnum ? { - extensions: [new PieHexExtension(requireEnumPalette(enumPaletteRef.current))], - getCenter: (d: HexagonData) => [d.lon, d.lat], - getRatios0: (d: HexagonData) => { - const r = distToRatios(d[distKey]); - return [r[0], r[1], r[2], r[3]]; - }, - getRatios1: (d: HexagonData) => { - const r = distToRatios(d[distKey]); - return [r[4], r[5], r[6], r[7]]; - }, - getRatios2: (d: HexagonData) => { - const r = distToRatios(d[distKey]); - return [r[8], r[9]]; - }, - updateTriggers: { - getCenter: [colorTrigger, data], - getRatios0: [colorTrigger, data], - getRatios1: [colorTrigger, data], - getRatios2: [colorTrigger, data], - }, - } + extensions: [new PieHexExtension(requireEnumPalette(enumPaletteRef.current))], + getCenter: (d: HexagonData) => [d.lon, d.lat], + getRatios0: (d: HexagonData) => { + const r = distToRatios(d[distKey]); + return [r[0], r[1], r[2], r[3]]; + }, + getRatios1: (d: HexagonData) => { + const r = distToRatios(d[distKey]); + return [r[4], r[5], r[6], r[7]]; + }, + getRatios2: (d: HexagonData) => { + const r = distToRatios(d[distKey]); + return [r[8], r[9]]; + }, + updateTriggers: { + getCenter: [colorTrigger, data], + getRatios0: [colorTrigger, data], + getRatios1: [colorTrigger, data], + getRatios2: [colorTrigger, data], + }, + } : {}; return new H3HexagonLayer({ diff --git a/frontend/src/index.css b/frontend/src/index.css index b4698a0..42ca9b5 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -1,6 +1,6 @@ @config "../tailwind.config.js"; -@import "tailwindcss"; +@import 'tailwindcss'; html, body, @@ -66,7 +66,7 @@ h3 { } .home-content-surface { - --home-hex-pattern: url("/home-hex-pattern.svg"); + --home-hex-pattern: url('/home-hex-pattern.svg'); --home-pointer-active: 0; --home-pointer-x: 50%; --home-pointer-y: 50%; @@ -124,7 +124,7 @@ h3 { } .dark .home-content-surface { - --home-hex-pattern: url("/home-hex-pattern-dark.svg"); + --home-hex-pattern: url('/home-hex-pattern-dark.svg'); background: linear-gradient(180deg, #121827 0%, #0a0e1a 42%, #10211f 100%); } diff --git a/frontend/src/lib/poi-distance-filter.ts b/frontend/src/lib/poi-distance-filter.ts index 5c63a98..7c4cd87 100644 --- a/frontend/src/lib/poi-distance-filter.ts +++ b/frontend/src/lib/poi-distance-filter.ts @@ -77,10 +77,6 @@ const POI_FILTER_CONFIGS: Record< }, }; -function isPoiFilterNameValue(name: string): name is PoiFilterName { - return POI_FILTER_NAMES.includes(name as PoiFilterName); -} - function getConfig(filterName: PoiFilterName) { return POI_FILTER_CONFIGS[filterName]; }