Skip to content

Commit

Permalink
Improve UX
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Dec 27, 2022
1 parent 0c6c711 commit 84665ca
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,12 @@ private fun BoxWithConstraintsScope.UI(
var rateToUpdate by remember {
mutableStateOf<RateUi?>(null)
}

var amountModalId by remember {
mutableStateOf(UUID.randomUUID())
}
val onRateClick = { rate: RateUi ->
rateToUpdate = rate
amountModalId = UUID.randomUUID()
amountModalVisible = true
}

Expand Down Expand Up @@ -127,7 +130,7 @@ private fun BoxWithConstraintsScope.UI(
)

AmountModal(
id = remember { UUID.randomUUID() },
id = amountModalId,
visible = amountModalVisible,
currency = "",
initialAmount = rateToUpdate?.rate,
Expand Down

0 comments on commit 84665ca

Please sign in to comment.