File tree Expand file tree Collapse file tree 4 files changed +7
-17
lines changed
app/src/main/java/to/bitkit
ui/screens/wallets/receive Expand file tree Collapse file tree 4 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ class WalletRepo @Inject constructor(
112112 selectedTags = emptyList(),
113113 bip21Description = " " ,
114114 bip21 = " " ,
115+ bip21AmountSats = null ,
115116 )
116117 }
117118
Original file line number Diff line number Diff line change @@ -139,10 +139,7 @@ fun EditInvoiceScreen(
139139 }
140140 },
141141 onContinueKeyboard = { keyboardVisible = false },
142- onContinueGeneral = {
143- updateInvoice(amountInputUiState.sats.toULong())
144- editInvoiceVM.onClickContinue()
145- },
142+ onContinueGeneral = { editInvoiceVM.onClickContinue() },
146143 onClickAddTag = onClickAddTag,
147144 onClickTag = onClickTag,
148145 isSoftKeyboardVisible = isSoftKeyboardVisible
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ import to.bitkit.ui.utils.NotificationUtils
4646import to.bitkit.ui.utils.withAccent
4747import to.bitkit.viewmodels.SettingsViewModel
4848
49- // TODO pass these to nav?
49+ // TODO replace with direct use of the now serializable IcJitEntry
5050@Serializable
5151data class CjitEntryDetails (
5252 val networkFeeSat : Long ,
Original file line number Diff line number Diff line change @@ -180,18 +180,10 @@ fun ReceiveSheet(
180180 amountInputViewModel = editInvoiceAmountViewModel,
181181 walletUiState = walletUiState,
182182 onBack = { navController.popBackStack() },
183- updateInvoice = { sats ->
184- wallet.updateBip21Invoice(amountSats = sats)
185- },
186- onClickAddTag = {
187- navController.navigate(ReceiveRoute .AddTag )
188- },
189- onClickTag = { tagToRemove ->
190- wallet.removeTag(tagToRemove)
191- },
192- onDescriptionUpdate = { newText ->
193- wallet.updateBip21Description(newText = newText)
194- },
183+ updateInvoice = wallet::updateBip21Invoice,
184+ onClickAddTag = { navController.navigate(ReceiveRoute .AddTag ) },
185+ onClickTag = wallet::removeTag,
186+ onDescriptionUpdate = wallet::updateBip21Description,
195187 navigateReceiveConfirm = { entry ->
196188 cjitEntryDetails.value = entry
197189 navController.navigate(ReceiveRoute .ConfirmIncreaseInbound )
You can’t perform that action at this time.
0 commit comments