File tree 1 file changed +2
-49
lines changed 1 file changed +2
-49
lines changed Original file line number Diff line number Diff line change @@ -198,17 +198,7 @@ export default function Navbar(props: any) {
198
198
</ NBLink >
199
199
< IconButton
200
200
p = "0"
201
- onPress = { ( ) => {
202
- toggleColorMode ( ) ;
203
- const date = new Date ( ) ;
204
- if (
205
- colorMode === 'dark' &&
206
- date . getMonth ( ) === 8 &&
207
- date . getDate ( ) === 13
208
- ) {
209
- setShowModal ( true ) ;
210
- }
211
- } }
201
+ onPress = { toggleColorMode }
212
202
variant = "unstyled"
213
203
_icon = { {
214
204
size : '6' ,
@@ -277,44 +267,7 @@ export default function Navbar(props: any) {
277
267
</ NBLink >
278
268
</ HStack >
279
269
</ HStack >
280
- < Modal isOpen = { showModal } onClose = { ( ) => setShowModal ( false ) } >
281
- < Modal . Content maxWidth = "400px" >
282
- < Modal . CloseButton />
283
- < Modal . Header > Light mode active 🚨</ Modal . Header >
284
- < Modal . Body >
285
- < Text >
286
- Do you really want to stay here? Really? Really? Pakka? Sure?{ ' ' }
287
- < Text bold > Are you a true developer?</ Text >
288
- </ Text >
289
- </ Modal . Body >
290
- < Modal . Footer >
291
- < Button . Group space = { 2 } >
292
- < Button
293
- variant = "ghost"
294
- colorScheme = "blueGray"
295
- onPress = { ( ) => {
296
- setShowModal ( false ) ;
297
- } }
298
- >
299
- No
300
- </ Button >
301
- < Button
302
- _text = { { color : 'coolGray.50' } }
303
- bg = "gray.900"
304
- _hover = { { bg : 'gray.800' } }
305
- _focus = { { bg : 'gray.800' } }
306
- _pressed = { { bg : 'gray.800' } }
307
- onPress = { ( ) => {
308
- setShowModal ( false ) ;
309
- toggleColorMode ( ) ;
310
- } }
311
- >
312
- Back to DarkMode
313
- </ Button >
314
- </ Button . Group >
315
- </ Modal . Footer >
316
- </ Modal . Content >
317
- </ Modal >
270
+
318
271
</ >
319
272
) ;
320
273
}
You can’t perform that action at this time.
0 commit comments