Move onChange handler to correct spot
This commit is contained in:
parent
2017e69bfc
commit
9cfc521256
@ -480,17 +480,16 @@ export default function () {
|
|||||||
</VStack>
|
</VStack>
|
||||||
<VStack alignItems="start" gap="8px" my="16px">
|
<VStack alignItems="start" gap="8px" my="16px">
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<FormLabel
|
<FormLabel htmlFor="show-old-events" mb="0">
|
||||||
htmlFor="show-old-events"
|
|
||||||
mb="0"
|
|
||||||
onChange={() => {
|
|
||||||
setShowOld(true);
|
|
||||||
setEventData([...eventData]);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Show old events
|
Show old events
|
||||||
</FormLabel>
|
</FormLabel>
|
||||||
<Switch id="show-old-events" />
|
<Switch
|
||||||
|
id="show-old-events"
|
||||||
|
onChange={(e) => {
|
||||||
|
setShowOld(e.target.checked);
|
||||||
|
setEventData([...eventData]);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<Link color="#646cff" href="/book-event" mt="16px" target="_blank">
|
<Link color="#646cff" href="/book-event" mt="16px" target="_blank">
|
||||||
Book an Event
|
Book an Event
|
||||||
|
Loading…
x
Reference in New Issue
Block a user