From 81ed510396f34326d9ce525284e3abfce44e2c88 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Tue, 21 Jan 2020 01:09:22 -0700 Subject: [PATCH] fix invalid variantColor --- ui/components/Debugger.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ui/components/Debugger.js b/ui/components/Debugger.js index ffc68b9..48ed9d5 100644 --- a/ui/components/Debugger.js +++ b/ui/components/Debugger.js @@ -19,16 +19,15 @@ import CodeBlock from "~/components/CodeBlock"; const prettyMediaSize = { sm: "SMALL", md: "MEDIUM", lg: "LARGE", xl: "X-LARGE" }; -export default () => { +const Debugger = () => { const { isOpen: configOpen, onOpen: onConfigOpen, onClose: configClose } = useDisclosure(); const { isOpen: themeOpen, onOpen: onThemeOpen, onClose: themeClose } = useDisclosure(); const config = useConfig(); const theme = useTheme(); - const bg = { light: theme.colors.white, dark: theme.colors.black }; - const color = { light: theme.colors.black, dark: theme.colors.white }; + const bg = { light: "white", dark: "white" }; + const color = { light: "black", dark: "white" }; const { colorMode } = useColorMode(); const { mediaSize } = useMedia(); - const colorModeBadge = { light: "gray", dark: "black" }; const borderColor = { light: "gray.100", dark: "gray.600" }; return ( <> @@ -45,7 +44,7 @@ export default () => { right={0} justifyContent="center" > - {colorMode.toUpperCase()} + {colorMode.toUpperCase()} {prettyMediaSize[mediaSize]}