Skip to content

Commit 88fadc0

Browse files
authored
Merge pull request #154 from code-payments/chore/open-currency-selector-in-same-stack
chore: open currency selector in same stack instead of new sheet
2 parents a451955 + 5a1db76 commit 88fadc0

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/src/main/java/com/getcode/navigation/screens/ModalScreens.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ data object CurrencySelectionModal: MainGraph, ModalRoot {
301301
override fun Content() {
302302
val navigator = LocalCodeNavigator.current
303303
ModalContainer(
304-
closeButton = {
304+
backButton = {
305305
if (navigator.isVisible) {
306306
it is CurrencySelectionModal
307307
} else {

app/src/main/java/com/getcode/view/main/account/withdraw/AccountWithdrawAmount.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fun AccountWithdrawAmount(
6464
isAnimated = true,
6565
textStyle = CodeTheme.typography.displayLarge,
6666
) {
67-
navigator.show(CurrencySelectionModal)
67+
navigator.push(CurrencySelectionModal)
6868
}
6969
}
7070

app/src/main/java/com/getcode/view/main/giveKin/GiveKinSheet.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fun GiveKinSheet(
7070
modifier = Modifier
7171
.align(Alignment.Center)
7272
) {
73-
navigator.show(CurrencySelectionModal)
73+
navigator.push(CurrencySelectionModal)
7474
}
7575
}
7676

0 commit comments

Comments
 (0)