Added Dark/Light mode feature.

This commit is contained in:
Daniel
2022-06-07 16:30:16 +04:30
parent 91d72e0c0f
commit a2b1d2109f
12 changed files with 237 additions and 110 deletions
+2 -2
View File
@@ -2,10 +2,10 @@ import '../styles/Loader.css';
import { InfinitySpin } from 'react-loader-spinner'
const Loader = () => {
const Loader = ({ lightMode }) => {
return (
<div className='loader'>
<InfinitySpin color="white" />
<InfinitySpin color={lightMode ? "Black" : "White"} />
</div>
)
}