fix: give fields a user-friendly label

This commit is contained in:
siiky 2024-09-02 15:24:22 +01:00
parent fc47944ac8
commit f1566c1bcc
4 changed files with 31 additions and 11 deletions

View file

@ -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 = {