Skip to content

Commit 1c5155f

Browse files
authored
Merge pull request #407 from GeekyAnts/fix/navbar-content-changes
remove modal and content in navbar
2 parents 622539c + 4f06bfb commit 1c5155f

File tree

1 file changed

+2
-49
lines changed

1 file changed

+2
-49
lines changed

src/new-components/Navbar.tsx

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,7 @@ export default function Navbar(props: any) {
198198
</NBLink>
199199
<IconButton
200200
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}
212202
variant="unstyled"
213203
_icon={{
214204
size: '6',
@@ -277,44 +267,7 @@ export default function Navbar(props: any) {
277267
</NBLink>
278268
</HStack>
279269
</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+
318271
</>
319272
);
320273
}

0 commit comments

Comments
 (0)