From 0ef8f61965c5a9c58ec967be000c6551f2d1a8c1 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 12 Sep 2024 00:22:50 +0200 Subject: [PATCH] Added preview for Flickercode --- .../banking/ui/dialogs/EnterTanDialogPreview.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/composeApp/src/androidMain/kotlin/net/codinux/banking/ui/dialogs/EnterTanDialogPreview.kt b/composeApp/src/androidMain/kotlin/net/codinux/banking/ui/dialogs/EnterTanDialogPreview.kt index 095bc91..ed350c5 100644 --- a/composeApp/src/androidMain/kotlin/net/codinux/banking/ui/dialogs/EnterTanDialogPreview.kt +++ b/composeApp/src/androidMain/kotlin/net/codinux/banking/ui/dialogs/EnterTanDialogPreview.kt @@ -55,5 +55,15 @@ fun EnterTanDialogPreview_WithMultipleTanMedia() { // shows that dialog is reall val tanChallenge = TanChallenge(TanChallengeType.Image, ActionRequiringTan.GetTransactions, "Sie möchten eine \"Umsatzabfrage\" freigeben: Bitte bestätigen Sie den \"Startcode 80061030\" mit der Taste \"OK\".", "913", tanMethods, "SparkassenCard (Debitkarte)", tanMedia, tanImage, null, user, account) + EnterTanDialog(TanChallengeReceived(tanChallenge) { }) { } +} + +@Preview +@Composable +fun EnterTanDialogPreview_Flickercode() { + val tanMethods = listOf(TanMethod("chipTAN Flickercode", TanMethodType.ChipTanFlickercode, "902")) + val user = BankViewInfo("12345678", "SupiDupiNutzer", "Abzockbank", BankingGroup.Postbank) + val tanChallenge = TanChallenge(TanChallengeType.Flickercode, ActionRequiringTan.GetAccountInfo, "Geben Sie die TAN ein", tanMethods.first().identifier, tanMethods, user = user, flickerCode = FlickerCode("", "")) + EnterTanDialog(TanChallengeReceived(tanChallenge) { }) { } } \ No newline at end of file