Improve weather module

This commit is contained in:
Thomas "ajnart" Camlong
2022-05-17 21:22:14 +02:00
parent 471a9f7407
commit 2ba9d517a8
5 changed files with 8 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
export * from './moduleWrapper';
export * from './date';
export * from './calendar';
export * from './search';

View File

@@ -2,7 +2,7 @@ import { Card, useMantineTheme } from '@mantine/core';
import { useConfig } from '../../tools/state';
import { IModule } from './modules';
export default function ModuleWrapper(props: any) {
export function ModuleWrapper(props: any) {
const { module }: { module: IModule } = props;
const { config } = useConfig();
const enabledModules = config.settings.enabledModules ?? [];

View File

@@ -17,7 +17,7 @@ import { IModule } from '../modules';
import { WeatherResponse } from './WeatherInterface';
export const WeatherModule: IModule = {
title: 'Weather',
title: 'Weather (beta)',
description: 'Look up the current weather in your location',
icon: Sun,
component: WeatherComponent,