fix: give fields a user-friendly label
This commit is contained in:
parent
fc47944ac8
commit
f1566c1bcc
4 changed files with 31 additions and 11 deletions
|
|
@ -32,8 +32,12 @@ const Screen1Information = () => {
|
|||
}
|
||||
|
||||
const validationSchema = Yup.object().shape({
|
||||
screen1Title: Yup.string().required(),
|
||||
screen1Text: Yup.string().required()
|
||||
screen1Title: Yup.string()
|
||||
.label('Screen title')
|
||||
.required(),
|
||||
screen1Text: Yup.string()
|
||||
.label('Screen text')
|
||||
.required()
|
||||
})
|
||||
|
||||
const defaultValues = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue