Changes to hackclub.com/slack post discussion with @zrl (#1206)

Co-authored-by: Sam Poder <sam.r.poder@gmail.com>
This commit is contained in:
Jasper Mayone 2024-05-20 11:56:20 -04:00 committed by GitHub
parent 54fc0e9812
commit 1efca32a04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,3 +1,4 @@
import { getCookie, hasCookie } from 'cookies-next'
import {
Box,
Card,
@ -11,7 +12,6 @@ import {
} from 'theme-ui'
import useForm from '../../lib/use-form'
import Submit from '../submit'
import { getCookie, hasCookie } from 'cookies-next'
import { withRouter } from 'next/router'
@ -23,10 +23,10 @@ const JoinForm = ({ sx = {}, router }) => {
method: 'POST',
initData: hasCookie('continent')
? {
continent: getCookie('continent'),
reason: router.query.reason,
event: router.query.event
}
continent: getCookie('continent'),
reason: router.query.reason,
event: router.query.event
}
: { reason: router.query.reason, event: router.query.event }
})
@ -77,7 +77,7 @@ const JoinForm = ({ sx = {}, router }) => {
/>
</Label>
<Label>
Education level
School level
<Select
{...useField('year')}
required
@ -93,10 +93,10 @@ const JoinForm = ({ sx = {}, router }) => {
</Label>
</Grid>
<Label>
Why do you want to join the Hack Club Slack?
How did you hear about us/the Slack? What are you most looking forward to?
<Textarea
{...useField('reason')}
placeholder="Write a few sentences."
placeholder="I heard about Hack Club from..."
required
/>
</Label>