Simplify the member details page and account form
This commit is contained in:
parent
704333e7a2
commit
bc96b0b3f6
|
@ -239,25 +239,6 @@ export function AccountForm(props) {
|
||||||
{...makeProps('phone')}
|
{...makeProps('phone')}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Form.Field>
|
|
||||||
<label>Are you under 18 years old?</label>
|
|
||||||
<Checkbox
|
|
||||||
label='I am a minor'
|
|
||||||
name='is_minor'
|
|
||||||
onChange={handleCheck}
|
|
||||||
checked={input.is_minor}
|
|
||||||
/>
|
|
||||||
</Form.Field>
|
|
||||||
|
|
||||||
{input.is_minor && <Form.Input
|
|
||||||
label='Birthdate YYYY-MM-DD'
|
|
||||||
{...makeProps('birthdate')}
|
|
||||||
/>}
|
|
||||||
{input.is_minor && <Form.Input
|
|
||||||
label="Guardian's Name"
|
|
||||||
{...makeProps('guardian_name')}
|
|
||||||
/>}
|
|
||||||
|
|
||||||
<Form.Input
|
<Form.Input
|
||||||
label='Emergency Contact Name'
|
label='Emergency Contact Name'
|
||||||
autoComplete='off'
|
autoComplete='off'
|
||||||
|
|
|
@ -516,19 +516,6 @@ export function AdminMemberInfo(props) {
|
||||||
<Table.Cell>{member.phone}</Table.Cell>
|
<Table.Cell>{member.phone}</Table.Cell>
|
||||||
</Table.Row>
|
</Table.Row>
|
||||||
|
|
||||||
<Table.Row>
|
|
||||||
<Table.Cell>Minor:</Table.Cell>
|
|
||||||
<Table.Cell>{member.is_minor ? 'Yes' : 'No'}</Table.Cell>
|
|
||||||
</Table.Row>
|
|
||||||
{member.is_minor && <Table.Row>
|
|
||||||
<Table.Cell>Birthdate:</Table.Cell>
|
|
||||||
<Table.Cell>{member.birthdate}</Table.Cell>
|
|
||||||
</Table.Row>}
|
|
||||||
{member.is_minor && <Table.Row>
|
|
||||||
<Table.Cell>Guardian:</Table.Cell>
|
|
||||||
<Table.Cell>{member.guardian_name}</Table.Cell>
|
|
||||||
</Table.Row>}
|
|
||||||
|
|
||||||
<Table.Row>
|
<Table.Row>
|
||||||
<Table.Cell>Emergency Contact Name:</Table.Cell>
|
<Table.Cell>Emergency Contact Name:</Table.Cell>
|
||||||
<Table.Cell>{member.emergency_contact_name || 'None'}</Table.Cell>
|
<Table.Cell>{member.emergency_contact_name || 'None'}</Table.Cell>
|
||||||
|
|
|
@ -211,14 +211,7 @@ export function Home(props) {
|
||||||
user.member.set_details ?
|
user.member.set_details ?
|
||||||
<MemberInfo user={user} />
|
<MemberInfo user={user} />
|
||||||
:
|
:
|
||||||
<div>
|
<AccountForm {...props} />
|
||||||
<Message warning>
|
|
||||||
<Message.Header>Please submit your member details</Message.Header>
|
|
||||||
<p>Press submit at the bottom if everything's correct.</p>
|
|
||||||
</Message>
|
|
||||||
|
|
||||||
<AccountForm {...props} />
|
|
||||||
</div>
|
|
||||||
:
|
:
|
||||||
<div>
|
<div>
|
||||||
<LoginForm {...props} />
|
<LoginForm {...props} />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user