Move onChange handler to correct spot
This commit is contained in:
parent
2017e69bfc
commit
9cfc521256
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user