From b0ad2ae3d976eed43c692670286556f2b0ee6355 Mon Sep 17 00:00:00 2001 From: JayShortway <29483617+JayShortway@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:10:34 +0100 Subject: [PATCH] [Paywalls V2] Fixes previews of ButtonComponentView, StackComponentView and TextComponentView (#1992) --- .../ui/revenuecatui/components/button/ButtonComponentView.kt | 2 +- .../ui/revenuecatui/components/stack/StackComponentView.kt | 2 +- .../ui/revenuecatui/components/text/TextComponentView.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/components/button/ButtonComponentView.kt b/ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/components/button/ButtonComponentView.kt index eb334b0984..95914e74f5 100644 --- a/ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/components/button/ButtonComponentView.kt +++ b/ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/components/button/ButtonComponentView.kt @@ -136,7 +136,7 @@ private fun previewEmptyState(): PaywallState.Loaded.Components { stickyFooter = null, ), ), - componentsLocalizations = emptyMap(), + componentsLocalizations = mapOf(LocaleId("en_US") to emptyMap()), defaultLocaleIdentifier = LocaleId("en_US"), ) val offering = Offering( diff --git a/ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/components/stack/StackComponentView.kt b/ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/components/stack/StackComponentView.kt index 6d51255e0d..88d08a95b7 100644 --- a/ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/components/stack/StackComponentView.kt +++ b/ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/components/stack/StackComponentView.kt @@ -316,7 +316,7 @@ private fun previewEmptyState(): PaywallState.Loaded.Components { stickyFooter = null, ), ), - componentsLocalizations = emptyMap(), + componentsLocalizations = mapOf(LocaleId("en_US") to emptyMap()), defaultLocaleIdentifier = LocaleId("en_US"), ) val offering = Offering( diff --git a/ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/components/text/TextComponentView.kt b/ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/components/text/TextComponentView.kt index d5e53515fb..7de98e545d 100644 --- a/ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/components/text/TextComponentView.kt +++ b/ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/components/text/TextComponentView.kt @@ -394,7 +394,7 @@ private fun previewEmptyState(): PaywallState.Loaded.Components { stickyFooter = null, ), ), - componentsLocalizations = emptyMap(), + componentsLocalizations = mapOf(LocaleId("en_US") to emptyMap()), defaultLocaleIdentifier = LocaleId("en_US"), ) val offering = Offering(