Add field on signup helper field

This commit is contained in:
2023-08-15 20:49:08 +00:00
parent e1e98da7d8
commit c819f88c50
3 changed files with 21 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import * as loadImage from 'blueimp-load-image';
import ReactCrop from 'react-image-crop';
import 'react-image-crop/dist/ReactCrop.css';
import './light.css';
import { MembersDropdown } from './Members.js';
import { Button, Container, Form, Grid, Header, Message, Segment } from 'semantic-ui-react';
import { requester, randomString } from './utils.js';
@@ -300,6 +301,17 @@ export function AccountForm(props) {
</>
}
{isSignup && <Form.Field error={error.member_id}>
<label>Who helped you sign up? (search)</label>
<MembersDropdown
token={token}
{...makeProps('helper_id')}
onChange={handleValues}
initial={''}
autofocus={''}
/>
</Form.Field>}
<Form.Button loading={loading} error={error.non_field_errors}>
Submit
</Form.Button>