-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from plastic-labs/dev/ben-390
Dev/ben 390
- Loading branch information
Showing
6 changed files
with
236 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from "react"; | ||
import { FaCircleNotch } from "react-icons/fa"; | ||
|
||
const Spinner = ({ size = 24, color = "#000000" }) => { | ||
const spinnerStyle = { | ||
animation: "spin 1s linear infinite", | ||
color: color, | ||
fontSize: `${size}px`, | ||
}; | ||
|
||
return ( | ||
<div style={{ display: "inline-block" }}> | ||
<style> | ||
{` | ||
@keyframes spin { | ||
0% { transform: rotate(0deg); } | ||
100% { transform: rotate(360deg); } | ||
} | ||
`} | ||
</style> | ||
<FaCircleNotch style={spinnerStyle} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Spinner; |
Oops, something went wrong.