diff --git a/src/App.jsx b/src/App.jsx index bfa70f0..e23bee4 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -99,6 +99,10 @@ const App = () => { const [showSettings, setShowSettings] = useState(false); const [showDXFilters, setShowDXFilters] = useState(false); const [showPSKFilters, setShowPSKFilters] = useState(false); + const [weatherExpanded, setWeatherExpanded] = useState(false); + const [tempUnit, setTempUnit] = useState(() => { + try { return localStorage.getItem('openhamclock_tempUnit') || 'F'; } catch { return 'F'; } + }); const [isFullscreen, setIsFullscreen] = useState(false); // Map layer visibility @@ -208,7 +212,7 @@ const App = () => { const propagation = usePropagation(config.location, dxLocation); const mySpots = useMySpots(config.callsign); const satellites = useSatellites(config.location); - const localWeather = useLocalWeather(config.location); + const localWeather = useLocalWeather(config.location, tempUnit); const pskReporter = usePSKReporter(config.callsign, { minutes: 15, enabled: config.callsign !== 'N0CALL' }); const wsjtx = useWSJTX(); @@ -599,7 +603,7 @@ const App = () => { {/* LEFT SIDEBAR */}