diff --git a/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyDark_da39a3ee_da39a3ee_0.png b/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyDark_da39a3ee_da39a3ee_0.png index be01fccecb..f24044b7a9 100644 Binary files a/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyDark_da39a3ee_da39a3ee_0.png and b/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyDark_da39a3ee_da39a3ee_0.png differ diff --git a/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyDark_nexus_one_c37ad86f_da39a3ee_0.png b/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyDark_nexus_one_c37ad86f_da39a3ee_0.png index 818ecd87d1..bd009b3910 100644 Binary files a/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyDark_nexus_one_c37ad86f_da39a3ee_0.png and b/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyDark_nexus_one_c37ad86f_da39a3ee_0.png differ diff --git a/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyLight_da39a3ee_da39a3ee_0.png b/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyLight_da39a3ee_da39a3ee_0.png index 0e2ea23631..b1adcdbe10 100644 Binary files a/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyLight_da39a3ee_da39a3ee_0.png and b/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyLight_da39a3ee_da39a3ee_0.png differ diff --git a/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyLight_nexus_one_c37ad86f_da39a3ee_0.png b/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyLight_nexus_one_c37ad86f_da39a3ee_0.png index e49933d07e..2bfeee944f 100644 Binary files a/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyLight_nexus_one_c37ad86f_da39a3ee_0.png and b/screen/onboarding/src/debug/screenshotTest/reference/OnboardingScreenPreviewTestKt/PreviewOnboardingSetCurrencyLight_nexus_one_c37ad86f_da39a3ee_0.png differ diff --git a/screen/onboarding/src/main/java/com/ivy/onboarding/steps/OnboardingSetCurrency.kt b/screen/onboarding/src/main/java/com/ivy/onboarding/steps/OnboardingSetCurrency.kt index b42bd48d3b..942625655a 100644 --- a/screen/onboarding/src/main/java/com/ivy/onboarding/steps/OnboardingSetCurrency.kt +++ b/screen/onboarding/src/main/java/com/ivy/onboarding/steps/OnboardingSetCurrency.kt @@ -1,5 +1,6 @@ package com.ivy.onboarding.steps +import android.icu.util.Currency import androidx.compose.foundation.layout.BoxWithConstraintsScope import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer @@ -39,7 +40,7 @@ import com.ivy.wallet.ui.theme.components.OnboardingButton @Composable fun BoxWithConstraintsScope.OnboardingSetCurrency( preselectedCurrency: IvyCurrency, - onSetCurrency: (IvyCurrency) -> Unit + onSetCurrency: (IvyCurrency) -> Unit, ) { setStatusBarDarkTextCompat(darkText = UI.colors.isLight) @@ -120,7 +121,7 @@ fun BoxWithConstraintsScope.OnboardingSetCurrency( private fun OnboardingSetCurrencyPreview(theme: Theme = Theme.LIGHT) { IvyWalletPreview(theme) { OnboardingSetCurrency( - preselectedCurrency = IvyCurrency.getDefault() + preselectedCurrency = IvyCurrency(fiatCurrency = Currency.getInstance("USD")) ) { } }