mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 04:10:32 +00:00
12 lines
382 B
JavaScript
12 lines
382 B
JavaScript
import * as Yup from 'yup';
|
|
import intl from 'react-intl-universal';
|
|
import { DATATYPES_LENGTH } from 'common/dataTypes';
|
|
|
|
const Schema = Yup.object().shape({
|
|
customer_name: Yup.string().required(),
|
|
customer_phone_number: Yup.number().required(),
|
|
sms_message: Yup.string().required().trim().max(DATATYPES_LENGTH.TEXT),
|
|
});
|
|
|
|
export const CreateNotifyViaSMSFormSchema = Schema;
|