This commit is contained in:
2026-02-23 05:49:33 +00:00
parent a601b8e078
commit 46c3b6b71d
17 changed files with 98 additions and 27 deletions
+6 -1
View File
@@ -1,8 +1,9 @@
import type { WidgetRegistryMeta } from 'officerdev';
import { useCallback, useRef, useState } from 'react';
import { useQuery, useQueryClient } from '@tanstack/react-query';
import { useClient } from 'hooks/useClient';
import { useAuth } from 'hooks/useAuth';
import { MapPin, Settings } from 'lucide-react';
import { CloudSun, MapPin, Settings } from 'lucide-react';
import { Widget } from '../Widget';
import { getWeatherInfo } from './weather-codes';
@@ -266,3 +267,7 @@ export const Weather = () => {
</Widget>
);
};
export const widgetRegistryMetas: WidgetRegistryMeta[] = [
{ key: 'weather', name: 'Weather', icon: CloudSun, component: Weather },
];