forked from deriv-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'evgeniy-wall-376/likhith-wall-379/verification_ux_impro…
…vement_with_example' of https://github.com/yauheni-deriv/deriv-app into shahzaib/KYC-1/error-handling-for-onfido-flow
- Loading branch information
Showing
90 changed files
with
4,156 additions
and
23,728 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,7 @@ | ||
## Changes: | ||
|
||
Please include a summary of the change and which issue is fixed below: | ||
- ... | ||
Please provide a summary of the change. | ||
|
||
## When you need to add unit test | ||
### Screenshots: | ||
|
||
- [ ] If this change disrupt current flow | ||
- [ ] If this change is adding new flow | ||
|
||
## When you need to add integration test | ||
|
||
- [ ] If components from external libraries are being used to define the flow, e.g. @deriv/components | ||
- [ ] If it relies on a very specific set of props with no default behavior for the current component. | ||
|
||
## Test coverage checklist (for reviewer) | ||
|
||
- [ ] Ensure utility / function has a test case | ||
- [ ] Ensure all the tests are passing | ||
|
||
## Type of change | ||
|
||
- [ ] Bug fix | ||
- [ ] New feature | ||
- [ ] Update feature | ||
- [ ] Refactor code | ||
- [ ] Translation to code | ||
- [ ] Translation to crowdin | ||
- [ ] Script configuration | ||
- [ ] Improve performance | ||
- [ ] Style only | ||
- [ ] Dependency update | ||
- [ ] Documentation update | ||
- [ ] Release | ||
Please provide some screenshots of the change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
name: 'Close stale issues and PRs' | ||
on: | ||
schedule: | ||
- cron: '30 1 * * *' | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days.' | ||
days-before-stale: 60 | ||
days-before-close: 5 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React from 'react'; | ||
import { Field } from 'formik'; | ||
import { DateOfBirthPicker, Input } from '@deriv/components'; | ||
import { toMoment } from '@deriv/shared'; | ||
|
||
export const DateOfBirthField = props => ( | ||
<Field name={props.name}> | ||
{({ field: { value }, form: { setFieldValue, errors, touched, setTouched } }) => ( | ||
<DateOfBirthPicker | ||
error={touched.date_of_birth && errors.date_of_birth} | ||
onBlur={() => | ||
setTouched({ | ||
...touched, | ||
date_of_birth: true, | ||
}) | ||
} | ||
onChange={({ target }) => | ||
setFieldValue( | ||
'date_of_birth', | ||
target?.value ? toMoment(target.value).format('YYYY-MM-DD') : '', | ||
true | ||
) | ||
} | ||
value={value} | ||
portal_id={props.portal_id} | ||
{...props} | ||
/> | ||
)} | ||
</Field> | ||
); | ||
|
||
export const FormInputField = ({ name, optional = false, warn, ...props }) => ( | ||
<Field name={name}> | ||
{({ field, form: { errors, touched } }) => ( | ||
<Input | ||
type='text' | ||
required={!optional} | ||
name={name} | ||
autoComplete='off' | ||
maxLength={props.maxLength || 30} | ||
error={touched[field.name] && errors[field.name]} | ||
warn={warn} | ||
{...field} | ||
{...props} | ||
/> | ||
)} | ||
</Field> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.