From d04a24ef6e3305c7133296f923d7268c114801c6 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Tue, 29 Dec 2020 02:09:14 -0700 Subject: [PATCH] fix loading component style [skip ci] --- hyperglass/ui/components/loading.tsx | 42 +++++++++++++--------------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/hyperglass/ui/components/loading.tsx b/hyperglass/ui/components/loading.tsx index 52c537f..a4ec0e5 100644 --- a/hyperglass/ui/components/loading.tsx +++ b/hyperglass/ui/components/loading.tsx @@ -1,28 +1,24 @@ import { Flex, Spinner } from '@chakra-ui/react'; -import { useColorValue } from '~/context'; import type { LoadableBaseOptions } from 'next/dynamic'; -export const Loading: LoadableBaseOptions['loading'] = () => { - const bg = useColorValue('white', 'black'); - const color = useColorValue('black', 'white'); - return ( - - - - +export const Loading: LoadableBaseOptions['loading'] = () => ( + + + - ); -}; + +);