This commit is contained in:
@@ -5,9 +5,10 @@ import {
|
||||
Center,
|
||||
useColorMode
|
||||
} from '@chakra-ui/react'
|
||||
import { useThemeManager } from '../../hooks/useThemeManager';
|
||||
|
||||
export const PageLoader = () => {
|
||||
const { colorMode } = useColorMode();
|
||||
const { isLightVariant } = useThemeManager();
|
||||
|
||||
return (
|
||||
<Container maxW="container.xl">
|
||||
@@ -15,8 +16,8 @@ export const PageLoader = () => {
|
||||
<Spinner
|
||||
thickness="4px"
|
||||
speed="0.65s"
|
||||
emptyColor={colorMode === 'light' ? 'gray.200' : 'gray.600'}
|
||||
color={colorMode === 'light' ? 'blue.500' : 'blue.300'}
|
||||
emptyColor={isLightVariant ? 'gray.200' : 'gray.600'}
|
||||
color={isLightVariant ? 'blue.500' : 'blue.300'}
|
||||
size="xl"
|
||||
/>
|
||||
</Center>
|
||||
|
||||
Reference in New Issue
Block a user