mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat(FE-188): create Expense Form schema
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
import * as Yup from 'yup';
|
||||||
|
|
||||||
|
export const ExpenseFormSchema = Yup.object({
|
||||||
|
name: Yup.string().required('Nama wajib diisi!'),
|
||||||
|
});
|
||||||
|
|
||||||
|
export const UpdateExpenseFormSchema = ExpenseFormSchema;
|
||||||
|
|
||||||
|
export type ExpenseFormValues = Yup.InferType<typeof ExpenseFormSchema>;
|
||||||
Reference in New Issue
Block a user