Skip to content

Commit

Permalink
Changes to hackclub.com/slack post discussion with @zrl (#1206)
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Poder <sam.r.poder@gmail.com>
  • Loading branch information
jaspermayone and sampoder committed May 20, 2024
1 parent 54fc0e9 commit 1efca32
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions components/slack/join-form.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { getCookie, hasCookie } from 'cookies-next'
import {
Box,
Card,
Expand All @@ -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'

Expand All @@ -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 }
})

Expand Down Expand Up @@ -77,7 +77,7 @@ const JoinForm = ({ sx = {}, router }) => {
/>
</Label>
<Label>
Education level
School level
<Select
{...useField('year')}
required
Expand All @@ -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>
Expand Down

0 comments on commit 1efca32

Please sign in to comment.