Skip to content

Commit 348a460

Browse files
Update the Header components
1 parent 635b072 commit 348a460

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

components/Header.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React,{ useEffect, useState} from "react";
1+
import React,{ useState} from "react";
22
import Link from 'next/link';
33

44
import { MdNightlightRound, MdWbSunny } from "react-icons/md";
@@ -7,7 +7,6 @@ function Header() {
77

88
const [color, setColor] = useState('hidden')
99

10-
// useEffect(() => setColor('hidden'), [])
1110

1211
return (
1312
<main className="container">
@@ -38,8 +37,8 @@ function Header() {
3837

3938
<li>
4039
<button id="theme-toggle" type="button" className="theme-toggle-button" data-theme-switcher="light">
41-
<MdNightlightRound fill='white' className={color} id="theme-toggle-dark-icon" />
42-
<MdWbSunny fill='black' className={color} id="theme-toggle-light-icon"/>
40+
<MdNightlightRound fill='black' className={color} id="theme-toggle-dark-icon" />
41+
<MdWbSunny fill='white' className={color} id="theme-toggle-light-icon"/>
4342
</button>
4443
</li>
4544
</ul>

0 commit comments

Comments
 (0)