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

@@ -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 ?? [];