Fix error by removing unused toast dependencies from weather widget

Remove unused `useToast` and `useQueryClient` imports from the `WeatherWidget.tsx` component to resolve a `ReferenceError` in production.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d43bd811-9372-45a7-8ac9-4a954c0538e1
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/d43bd811-9372-45a7-8ac9-4a954c0538e1/sBtPBve
This commit is contained in:
michaelschal committed 2025-08-15 11:58:41 +00:00
1 parent cacc3984d5
commit ed3f6668f0
3 files changed
+1 -4

No files matched your search

-3
View File
@@ -118,9 +118,6 @@ const WeatherIcon = ({ condition, size = 20 }: { condition: string; size?: numbe
};
export default function WeatherWidget() {
const { toast } = useToast();
const queryClient = useQueryClient();
const { data: weather, isLoading, error } = useQuery<WeatherResponse>({
queryKey: ['/api/weather/current'],
refetchInterval: 30 * 60 * 1000, // Refetch every 30 minutes