-
Notifications
You must be signed in to change notification settings - Fork 988
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MBL-1326 bonus support input (#2030)
* Functionality minus currency symbol and styling * Move currency symbol out of TextField into its own Text * Wrap currency symbol and amount into a stylized right aligned row * Separate currency symbol start and end * Cursor brush * Remove logs * Fix lint * Address feedback and stylize max pledge amount * Remove unused util method * Fix lint * Fix max input amount error messaging * Fix relationship between initialBonusSupport and totalBonusSupport * Address feedback to move to util methods * Couple of tests * Oops lint * Change variable name --------- Co-authored-by: Isabel Martin <[email protected]> Co-authored-by: mtgriego <[email protected]>
- Loading branch information
1 parent
4974fd2
commit 96dc1aa
Showing
9 changed files
with
226 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,6 +109,7 @@ private fun ProjectPledgeButtonAndContainerPreview() { | |
selectedRewardAndAddOnList = listOf(), | ||
onBonusSupportMinusClicked = {}, | ||
onBonusSupportPlusClicked = {}, | ||
onBonusSupportInputted = {}, | ||
storedCards = listOf(), | ||
userEmail = "[email protected]", | ||
onPledgeCtaClicked = {}, | ||
|
@@ -154,6 +155,7 @@ fun ProjectPledgeButtonAndFragmentContainer( | |
selectedRewardAndAddOnList: List<Reward>, | ||
onBonusSupportPlusClicked: () -> Unit, | ||
onBonusSupportMinusClicked: () -> Unit, | ||
onBonusSupportInputted: (input: Double) -> Unit, | ||
storedCards: List<StoredCard>, | ||
userEmail: String, | ||
onPledgeCtaClicked: (selectedCard: StoredCard?) -> Unit, | ||
|
@@ -312,6 +314,7 @@ fun ProjectPledgeButtonAndFragmentContainer( | |
}, | ||
onBonusSupportPlusClicked = onBonusSupportPlusClicked, | ||
onBonusSupportMinusClicked = onBonusSupportMinusClicked, | ||
onBonusSupportInputted = onBonusSupportInputted, | ||
isLoading = isLoading, | ||
) | ||
} | ||
|
Oops, something went wrong.