This commit is contained in:
Sean Edmunds
2024-08-20 16:28:46 -05:00
parent 8152d3fe73
commit 7990f164d6
39 changed files with 824 additions and 772 deletions

View File

@@ -1,4 +1,4 @@
import { Box } from "@mantine/core";
import { Box } from '@mantine/core';
export default function ThemeProvider({
theme,
@@ -7,11 +7,12 @@ export default function ThemeProvider({
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,
'--color-text-pri': theme.colortextpri,
'--color-text-acc': theme.colortextacc,
'--color-background': theme.colorbackground,
'--color-border': theme.colorborder,
'--color-search-background': theme.colorsearchbackground,
'--image-background': `url(${theme.imagebackground})`,
}}
>
{children}

View File

@@ -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>