DataTable refactor.

This commit is contained in:
Mike Cao committed 2023-09-22 00:59:00 -07:00
1 parent 92ccc64e47
commit 6846355c63
17 files changed
+94 -114

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import * as yup from 'yup';
export const dateRange = {
startAt: yup.number().integer().required(),
endAt: yup.number().integer().moreThan(yup.ref('startAt')).required(),
};
export const pageInfo = {
query: yup.string(),
page: yup.number().integer().positive(),
pageSize: yup.number().integer().positive().max(200),
orderBy: yup.string(),
};