fix(ui): use imported theme instead of undefined createTheme

createTheme was called without being imported, causing a runtime
ReferenceError on every page load. Use the already-imported theme
object from @homarr/ui which contains the full Mantine configuration.
This commit is contained in:
Thomas Camlong committed 2026-05-28 15:54:37 +02:00
1 parent 4454e3fb7a
commit 4a67bf0ef3
1 file changed
+1 -5
@@ -21,11 +21,7 @@ export const CustomMantineProvider = ({
<MantineProvider
defaultColorScheme={defaultColorScheme}
colorSchemeManager={manager}
theme={createTheme({
primaryColor: "red",
autoContrast: true,
defaultRadius: "sm",
})}
theme={theme}
>
{children}
</MantineProvider>