Update components/Loader.tsx

Co-authored-by: zero734kr <zero734kr@gmail.com>
This commit is contained in:
Junseo Park 2021-04-17 11:18:22 +09:00 committed by GitHub
parent e8f1b712fe
commit 7056c1ffa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ const Loader = ({ text, visible = true }: LoaderProps): JSX.Element => {
<div
className={`${
visible ? '' : 'hidden '
}w-full h-full fixed block top-0 left-0 bg-gray-500 bg-opacity-75 z-50 dark:text-black`}
} w-full h-full fixed block top-0 left-0 bg-gray-500 bg-opacity-75 z-50 dark:text-black`}
>
<h1 className='relative top-1/2 block mx-auto my-0 text-center text-2xl font-semibold opacity-100'>
{text}