Skip to content

Commit

Permalink
Incorrect restriction in withdrawls edit form (#1709)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* Update email address on FAQ (#1705)

Co-authored-by: ani-kalpachka <[email protected]>

* Update translations (#1706)

* Update translations

* Update tranlations

* Update translations

---------

Co-authored-by: ani-kalpachka <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: ani-kalpachka <[email protected]>
Co-authored-by: Aleksandar Petkov <[email protected]>
  • Loading branch information
4 people authored Jan 24, 2024
1 parent 04c5d2d commit fc52796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/admin/withdrawals/EditForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const validationSchema: yup.SchemaOf<WithdrawalData> = 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(),
Expand Down

0 comments on commit fc52796

Please sign in to comment.