Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move onChange handler to correct spot
  • Loading branch information
regalijan committed Apr 5, 2024
1 parent 2017e69 commit 9cfc521
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions app/routes/events-team.tsx
Expand Up @@ -480,17 +480,16 @@ export default function () {
</VStack>
<VStack alignItems="start" gap="8px" my="16px">
<FormControl>
<FormLabel
htmlFor="show-old-events"
mb="0"
onChange={() => {
setShowOld(true);
setEventData([...eventData]);
}}
>
<FormLabel htmlFor="show-old-events" mb="0">
Show old events
</FormLabel>
<Switch id="show-old-events" />
<Switch
id="show-old-events"
onChange={(e) => {
setShowOld(e.target.checked);
setEventData([...eventData]);
}}
/>
</FormControl>
<Link color="#646cff" href="/book-event" mt="16px" target="_blank">
Book an Event
Expand Down

0 comments on commit 9cfc521

Please sign in to comment.