@@ -54,6 +54,7 @@ import to.bitkit.ui.utils.withAccent
5454@Composable
5555fun OnboardingSlidesScreen (
5656 currentTab : Int = 0,
57+ isGeoBlocked : Boolean ,
5758 onAdvancedSetupClick : () -> Unit ,
5859 onCreateClick : () -> Unit ,
5960 onRestoreClick : () -> Unit ,
@@ -86,7 +87,7 @@ fun OnboardingSlidesScreen(
8687 title = stringResource(R .string.onboarding__slide1_header),
8788 titleAccentColor = Colors .Purple ,
8889 text = stringResource(R .string.onboarding__slide1_text),
89- disclaimerText = stringResource(R .string.onboarding__slide1_note), // TODO use GeoBlocking state
90+ disclaimerText = stringResource(R .string.onboarding__slide1_note). takeIf { isGeoBlocked },
9091 modifier = Modifier .testTag(" Slide1" )
9192 )
9293
@@ -239,6 +240,35 @@ private fun OnboardingViewPreview() {
239240 onAdvancedSetupClick = {},
240241 onCreateClick = {},
241242 onRestoreClick = {},
243+ isGeoBlocked = true
244+ )
245+ }
246+ }
247+
248+ @Preview(showSystemUi = true )
249+ @Composable
250+ private fun OnboardingViewPreview2 () {
251+ AppThemeSurface {
252+ OnboardingSlidesScreen (
253+ currentTab = 1 ,
254+ onAdvancedSetupClick = {},
255+ onCreateClick = {},
256+ onRestoreClick = {},
257+ isGeoBlocked = true
258+ )
259+ }
260+ }
261+
262+ @Preview(showSystemUi = true )
263+ @Composable
264+ private fun OnboardingViewPreview3 () {
265+ AppThemeSurface {
266+ OnboardingSlidesScreen (
267+ currentTab = 1 ,
268+ onAdvancedSetupClick = {},
269+ onCreateClick = {},
270+ onRestoreClick = {},
271+ isGeoBlocked = false
242272 )
243273 }
244274}
0 commit comments