mirror of
https://github.com/System-End/site.git
synced 2026-04-19 19:45:07 +00:00
preventing adults from joining the slack
This commit is contained in:
parent
5080b78ad5
commit
f755ff88bb
1 changed files with 5 additions and 3 deletions
|
|
@ -32,6 +32,8 @@ const JoinForm = ({ sx = {}, router }) => {
|
|||
|
||||
const eventReferrer = useField('event').value
|
||||
|
||||
const isAdult = useField('year').value === 'tertiary'
|
||||
|
||||
return (
|
||||
<Card sx={{ maxWidth: 'narrow', mx: 'auto', label: { mb: 3 }, ...sx }}>
|
||||
<form {...formProps}>
|
||||
|
|
@ -100,7 +102,7 @@ const JoinForm = ({ sx = {}, router }) => {
|
|||
required
|
||||
/>
|
||||
</Label>
|
||||
{/*{isAdult && (
|
||||
{isAdult && (
|
||||
<Text
|
||||
variant="caption"
|
||||
color="secondary"
|
||||
|
|
@ -114,7 +116,7 @@ const JoinForm = ({ sx = {}, router }) => {
|
|||
a email at{' '}
|
||||
<Link href="mailto:team@hackclub.com">team@hackclub.com</Link>.
|
||||
</Text>
|
||||
)}*/}
|
||||
)}
|
||||
<Box>
|
||||
<Submit
|
||||
status={status}
|
||||
|
|
@ -126,7 +128,7 @@ const JoinForm = ({ sx = {}, router }) => {
|
|||
? "You're on the Waitlist!"
|
||||
: 'Check your email for invite!'
|
||||
}}
|
||||
disabled={status === 'loading' || status === 'success'}
|
||||
disabled={status === 'loading' || status === 'success' || isAdult}
|
||||
/>
|
||||
{status === 'success' && !useWaitlist && (
|
||||
<Text
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue