-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made final change from Jo and tested, all still working after renaming / repointing
- Loading branch information
Showing
11 changed files
with
436 additions
and
45 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
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
12 changes: 8 additions & 4 deletions
12
editor.planx.uk/src/pages/FlowEditor/components/Team/formSchema.tsx
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,7 +1,11 @@ | ||
import * as Yup from "yup"; | ||
|
||
export const addNewEditorFormSchema = Yup.object({ | ||
firstName: Yup.string().required("Required"), | ||
lastName: Yup.string().required("Required"), | ||
email: Yup.string().email("Invalid email address").required("Required"), | ||
export const upsertEditorSchema = Yup.object({ | ||
firstName: Yup.string().required("Enter a first name"), | ||
lastName: Yup.string().required("Enter a last name"), | ||
email: Yup.string() | ||
.email( | ||
"Enter an email address in the correct format, like [email protected]", | ||
) | ||
.required("Enter a valid email address"), | ||
}); |
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.