� Module styling

This commit is contained in:
Aj - Thomas authored and ajnart committed 2022-05-16 23:03:16 +02:00
1 parent 20a37b678f
commit 8392dcef20
5 files changed
+22 -17

No files matched your search

+1 -10
View File
@@ -13,16 +13,7 @@ export default function ModuleWrapper(props: any) {
return null;
}
return (
<Card
hidden={!isShown}
mx="sm"
radius="lg"
shadow="sm"
style={{
// Make background color of the card depend on the theme
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[5] : 'white',
}}
>
<Card hidden={!isShown} mx="sm" withBorder radius="lg" shadow="sm">
<module.component />
</Card>
);