File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- import React , { useEffect , useState } from "react" ;
1
+ import React , { useState } from "react" ;
2
2
import Link from 'next/link' ;
3
3
4
4
import { MdNightlightRound , MdWbSunny } from "react-icons/md" ;
@@ -7,7 +7,6 @@ function Header() {
7
7
8
8
const [ color , setColor ] = useState ( 'hidden' )
9
9
10
- // useEffect(() => setColor('hidden'), [])
11
10
12
11
return (
13
12
< main className = "container" >
@@ -38,8 +37,8 @@ function Header() {
38
37
39
38
< li >
40
39
< 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" />
43
42
</ button >
44
43
</ li >
45
44
</ ul >
You can’t perform that action at this time.
0 commit comments