forked from binary-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DTRA] Maryia/DTRA-1468/feat: Stake functionality for V2 (binary-com#…
…16486) * fix: purchase button background fix & adding box-shadow * revert: box shadow on purchase button is no longer required * feat: init Stake * feat: add stake/payout info to stake bottom sheet & purchase button fixes * chore: remove unused opacity as quill has been updated * refactor: util function getDisplayedContractTypes * feat: use local state to not hide info upon proposal error * chore: handle empty input error * fix: error handling - allow showing error initially * fix: initial value * fix: mult info * chore: max payout error handling * chore: displayed payout values state * fix: stake logic for rise/fall & higher/lower * refactor: logic refactoring * fix: stake styles * chore: styling & coloring * feat: add new error for max payout exceeded to purchase button * feat: use initial values from local storage for stake * refactor: StakeDetails * refactor: stake * test: Stake * test: add test for Stake basis * test: fix take-profit test * fix: show initial value in the Stake textbox * refactor: address comment * feat: prevent save action if proposal response has not been received yet * fix: address comment for comma in stake input * chore: allow input from numpad with comma that will be auto-replaced with dot
- Loading branch information
1 parent
778a079
commit 4fdc5d2
Showing
20 changed files
with
831 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.