Created
August 15, 2020 08:37
-
-
Save skflowne/1ec3c72c8c848deaa8c074bf9e4f1536 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react" | |
import styled from "styled-components" | |
import Loader from "react-loader-spinner" | |
import "react-loader-spinner/dist/loader/css/react-spinner-loader.css" | |
const StyledLoadingIndicator = styled("div")` | |
position: absolute; | |
top: 1rem; | |
left: 50%; | |
transform: translateX(-50%); | |
z-index: 50; | |
` | |
const LoadingIndicator = () => { | |
return ( | |
<StyledLoadingIndicator> | |
<Loader type="Oval" color="#667EEA" height={40} width={40} /> | |
</StyledLoadingIndicator> | |
) | |
} | |
export default LoadingIndicator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment