File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -123,23 +123,23 @@ function Navbar({ loggedin }) {
123
123
</ ul >
124
124
</ li >
125
125
</ ul >
126
-
126
+ < span className = "me-3" >
127
+ < button
128
+ className = "btn clk rounded-circle"
129
+ onClick = { toggleTheme }
130
+ data-bs-toggle = "tooltip"
131
+ title = { `Switch to ${ theme === 'light' ? 'Dark' : 'Light' } Mode` }
132
+ >
133
+ { theme === 'light' ? (
134
+ < i className = "fa-solid fa-moon" > </ i >
135
+ ) : (
136
+ < i className = "fa-solid fa-sun" > </ i >
137
+ ) }
138
+ </ button >
139
+ </ span >
127
140
{ loggedin === 'true' ? (
128
141
< div className = "d-flex align-items-center flex-column flex-lg-row" >
129
- < span className = "me-3" >
130
- < button
131
- className = "btn clk rounded-circle"
132
- onClick = { toggleTheme }
133
- data-bs-toggle = "tooltip"
134
- title = { `Switch to ${ theme === 'light' ? 'Dark' : 'Light' } Mode` }
135
- >
136
- { theme === 'light' ? (
137
- < i className = "fa-solid fa-moon" > </ i >
138
- ) : (
139
- < i className = "fa-solid fa-sun" > </ i >
140
- ) }
141
- </ button >
142
- </ span >
142
+
143
143
< div className = "me-2 mb-2 mb-lg-0 position-relative" >
144
144
< form className = "input-group" onSubmit = { handleSearchSubmit } >
145
145
< span className = "input-group-text" id = "basic-addon1" >
You can’t perform that action at this time.
0 commit comments