Themes modal udpated
This commit is contained in:
@@ -1,11 +1,20 @@
|
||||
import { Box } from '@mantine/core';
|
||||
import { Box } from "@mantine/core";
|
||||
|
||||
export default function ThemeProvider({ theme, children }: { theme: any, children: React.ReactNode }) {
|
||||
return <Box style={{
|
||||
'--color-text-pri': theme.colortextpri,
|
||||
'--color-text-acc': theme.colortextacc,
|
||||
'--color-background': theme.colorbackground,
|
||||
'--color-border': theme.colorborder,
|
||||
'--color-search-background': theme.colorsearchbackground,
|
||||
}}>{children}</Box>;
|
||||
}
|
||||
export default function ThemeProvider({
|
||||
theme,
|
||||
children,
|
||||
}: { theme: any; children: React.ReactNode }) {
|
||||
return (
|
||||
<Box
|
||||
style={{
|
||||
"--color-text-pri": theme.colortextpri,
|
||||
"--color-text-acc": theme.colortextacc,
|
||||
"--color-background": theme.colorbackground,
|
||||
"--color-border": theme.colorborder,
|
||||
"--color-search-background": theme.colorsearchbackground,
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Stack, Text } from '@mantine/core';
|
||||
import { stackClasses } from '../styles';
|
||||
import { Stack, Text } from "@mantine/core";
|
||||
import { stackClasses } from "../styles";
|
||||
|
||||
export function ToastError({ err }: { err: any }) {
|
||||
const errorResponse = JSON.parse(err.message);
|
||||
return (
|
||||
<Stack className={stackClasses.VStack} style={{ alignItems: 'flex-start' }}>
|
||||
<Stack className={stackClasses.VStack} style={{ alignItems: "flex-start" }}>
|
||||
<Text>
|
||||
Status: {errorResponse.status} {errorResponse.statusText}
|
||||
</Text>
|
||||
|
||||
Reference in New Issue
Block a user