summaryrefslogtreecommitdiff
path: root/wallet/src/main/java/net/taler/wallet/peer/IncomingComposable.kt
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2023-01-18 11:14:12 -0600
committerIván Ávalos <avalos@disroot.org>2023-01-18 11:14:12 -0600
commit890452c60bcef81480d807a8a9effe67fd6aab0c (patch)
tree5c8e69763b69e99bb71246c24d899b06547800e4 /wallet/src/main/java/net/taler/wallet/peer/IncomingComposable.kt
parent18f1ebe0401e61d7dfab2e759708c74b76d3f672 (diff)
downloadtaler-android-890452c60bcef81480d807a8a9effe67fd6aab0c.tar.gz
taler-android-890452c60bcef81480d807a8a9effe67fd6aab0c.tar.bz2
taler-android-890452c60bcef81480d807a8a9effe67fd6aab0c.zip
[wallet] Statically import TalerErrorCode fields.
Diffstat (limited to 'wallet/src/main/java/net/taler/wallet/peer/IncomingComposable.kt')
-rw-r--r--wallet/src/main/java/net/taler/wallet/peer/IncomingComposable.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/wallet/src/main/java/net/taler/wallet/peer/IncomingComposable.kt b/wallet/src/main/java/net/taler/wallet/peer/IncomingComposable.kt
index 501fa3c..70f36a2 100644
--- a/wallet/src/main/java/net/taler/wallet/peer/IncomingComposable.kt
+++ b/wallet/src/main/java/net/taler/wallet/peer/IncomingComposable.kt
@@ -48,7 +48,7 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import net.taler.common.Amount
import net.taler.wallet.R
-import net.taler.wallet.backend.TalerErrorCode
+import net.taler.wallet.backend.TalerErrorCode.WALLET_WITHDRAWAL_KYC_REQUIRED
import net.taler.wallet.backend.TalerErrorInfo
data class IncomingData(
@@ -237,7 +237,7 @@ fun PeerPullAcceptingPreview() {
fun PeerPullPayErrorPreview() {
Surface {
@SuppressLint("UnrememberedMutableState")
- val s = mutableStateOf(IncomingError(TalerErrorInfo(TalerErrorCode.WALLET_WITHDRAWAL_KYC_REQUIRED, "hint", "msg")))
+ val s = mutableStateOf(IncomingError(TalerErrorInfo(WALLET_WITHDRAWAL_KYC_REQUIRED, "hint", "msg")))
IncomingComposable(s, incomingPush) {}
}
}