fixing auth, switching corporate, table member
This commit is contained in:
@@ -76,9 +76,9 @@ const DialogTopUpLimit = ({ title, openDialog, setOpenDialog, data }: MuiDialogP
|
||||
|
||||
const TopUpSchema = Yup.object().shape({
|
||||
topup: Yup.number(),
|
||||
// /*
|
||||
// // @ts-ignore */
|
||||
// .test('limit', 'Maximum Top Up Rp. 5.000.000', (val) => (val > 5000000 ? false : true)),
|
||||
/*
|
||||
// @ts-ignore */
|
||||
// .test('limit', 'Maximum Top Up Rp. 5.000.000', (val) => (val > 5000000 ? false : true)),
|
||||
});
|
||||
|
||||
const defaultValues = {
|
||||
@@ -87,6 +87,7 @@ const DialogTopUpLimit = ({ title, openDialog, setOpenDialog, data }: MuiDialogP
|
||||
|
||||
const methods = useForm<FormValuesProps>({
|
||||
resolver: yupResolver(TopUpSchema),
|
||||
// @ts-ignore
|
||||
defaultValues,
|
||||
});
|
||||
|
||||
@@ -110,6 +111,7 @@ const DialogTopUpLimit = ({ title, openDialog, setOpenDialog, data }: MuiDialogP
|
||||
const onCheckHandler = (data: FormValuesProps) => {
|
||||
setIsDisabledCheckbox(!isDisabledCheckbox);
|
||||
setIsDisabledButton(false);
|
||||
// @ts-ignore
|
||||
setValue('topup', testData.totalLimit - testData.myLimit);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user