widgets
This commit is contained in:
@@ -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 },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user