-
Notifications
You must be signed in to change notification settings - Fork 7
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
ONI-120: Formik validation POC. #49
base: develop
Are you sure you want to change the base?
Conversation
serviceCode: yup.string().required('Service code is required'), | ||
serviceName: yup.string().required('Service name is required'), | ||
serviceType: yup.string().required('Service type is required'), | ||
serviceCareType: yup.string().required('asdad') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a error message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I am aware of those problems, it is only a proof of concept at this moment, further development is needed. I've left this PR as a reference.
required | ||
readOnly={readOnly} | ||
value={edited && edited.name ? edited.name : ""} | ||
value={values.serviceName} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is different from the other textfield values.
@@ -1,6 +1,8 @@ | |||
import React from "react"; | |||
import { connect } from "react-redux"; | |||
import { injectIntl } from "react-intl"; | |||
import { withFormik} from 'formik'; | |||
import * as yup from 'yup'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to import * ?
@delcroip |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Ticket: https://openimis.atlassian.net/browse/ONI-120
Changes: