From fc52796e34305760d917588265ecb71a83127424 Mon Sep 17 00:00:00 2001 From: Slavcho Ivanov Date: Wed, 24 Jan 2024 17:52:19 +0530 Subject: [PATCH] Incorrect restriction in withdrawls edit form (#1709) * Remove unused translations, add EN translations for bank transactions (#1703) * Remove unused import and translations * Remove unused translations, added EN translations for bank transactions * Remove unused translations from campaigns.json * Remove unused translations from campaign.json * Add missing EN trnlations in campaigns.json * Add missing translations for common.json * Fix lint error --------- Co-authored-by: ani-kalpachka * Update email address on FAQ (#1705) Co-authored-by: ani-kalpachka * Update translations (#1706) * Update translations * Update tranlations * Update translations --------- Co-authored-by: ani-kalpachka * Update translations (#1707) * Add missing EN translations * Update translations for support.json and reccurong-donation.json * Update translations for validation.json and transfer.json * Update translations --------- Co-authored-by: ani-kalpachka * components/commmon: Gallery component improvements (#1708) * components/commmon: Gallery component improvements - Improved logic to render the Gallery Component more efficiently - Expanded the size of the images, when FullScreen is toggled - Added a button to minimize fullscreen slider * common/Gallery: Fix component crash when child is a single image In some situations, only a single image is uploaded, and in that case child.props.children is an object rather, than an array to map it over. * common/ImageSlider: Hide backdrop on FullScreenImageSlider Avoid minimizing gallery due to accidental touches * The amount of the withdrawals can be a decimal number. It should not be limited to integers only. --------- Co-authored-by: Ani Co-authored-by: ani-kalpachka Co-authored-by: Aleksandar Petkov --- src/components/admin/withdrawals/EditForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/admin/withdrawals/EditForm.tsx b/src/components/admin/withdrawals/EditForm.tsx index 3c443d67c..2c1e4e06f 100644 --- a/src/components/admin/withdrawals/EditForm.tsx +++ b/src/components/admin/withdrawals/EditForm.tsx @@ -47,7 +47,7 @@ const validationSchema: yup.SchemaOf = yup .defined() .shape({ status: yup.string().trim().min(1).max(10).required(), - amount: yup.number().positive().integer().required(), + amount: yup.number().positive().required(), reason: yup.string().trim().min(1).max(300).required(), currency: yup.string().oneOf(Object.values(Currency)).required(), sourceVaultId: yup.string().uuid().required(),