Skip to content

Commit

Permalink
Simplify loader wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailToyran committed Apr 25, 2023
1 parent e3fadeb commit d012ca0
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions components/Loader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Spinner } from '@chakra-ui/react'
import { Center, Spinner } from '@chakra-ui/react'
import { FC, useMemo } from 'react'

type Props = {
Expand All @@ -12,17 +12,9 @@ const Loader: FC<Props> = ({ fullPage }) => {
[fullPage],
)
return (
<Box
p={4}
width="100%"
display="flex"
flex="1"
justifyContent="center"
alignItems="center"
{...style}
>
<Center p={4} {...style}>
<Spinner size="lg" />
</Box>
</Center>
)
}

Expand Down

0 comments on commit d012ca0

Please sign in to comment.