Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial integration of formik & formik-antd to assign badge page #24

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

jontkoh
Copy link
Collaborator

@jontkoh jontkoh commented Mar 1, 2021

Hey guys this is the integration of formik to the assign badge page, still WIP. Please check and change whatever is needed ! I just followed @sraj50's direction with his implementation of formik on the create badge page.

@jontkoh jontkoh added the WIP Work in progress label Mar 1, 2021
@jontkoh jontkoh self-assigned this Mar 1, 2021
@jontkoh jontkoh removed the WIP Work in progress label Mar 2, 2021
@jontkoh
Copy link
Collaborator Author

jontkoh commented Mar 2, 2021

Is it ok to merge this?

<TextArea name="evidence" placeholder="Optionally provide evidence for the person who completed the task" forminputs={formInputs({ value })}/>
</Form.Item>
<Form.Item>
<PrimaryFormButton className="btn-right" type="primary" onClick={toggle} onSubmit={handleSubmit}>Assign Badge</PrimaryFormButton>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You will need to include the prop htmlType="submit" to hook up the form values to the Formik onSubmit property. See Antd Button API reference and useFormik reference.

}

<Form.Item>
<PrimaryFormButton className="btn-right" type="primary" onClick={toggle} onSubmit={handleSubmit}>Generate Link to Share</PrimaryFormButton>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, use prop htmlType="submit"

@jontkoh jontkoh requested a review from sraj50 March 2, 2021 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants