You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

shippingDetailsSchema.js 432B

123456789101112
  1. import * as Yup from 'yup';
  2. const registerSchema = Yup.object().shape({
  3. fullName: Yup.string().required('Full name is required'),
  4. address: Yup.string().required('Address is required'),
  5. address2: Yup.string(),
  6. city: Yup.string().required('City is required'),
  7. country: Yup.string().required('Country name is required'),
  8. postcode: Yup.string().required('Postal code name is required'),
  9. });
  10. export default registerSchema;