Fix onboarding web layout (#1990)

zio/stable
Eric Bailey 2023-11-24 16:40:07 -06:00 committed by GitHub
parent f2d164ec23
commit 1bcbc0cf2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import React from 'react' import React from 'react'
import {SafeAreaView} from 'react-native' import {SafeAreaView, Platform} from 'react-native'
import {ErrorBoundary} from 'view/com/util/ErrorBoundary' import {ErrorBoundary} from 'view/com/util/ErrorBoundary'
import {s} from 'lib/styles' import {s} from 'lib/styles'
import {usePalette} from 'lib/hooks/usePalette' import {usePalette} from 'lib/hooks/usePalette'
@ -23,7 +23,18 @@ export function Onboarding() {
const skip = () => onboardingDispatch({type: 'skip'}) const skip = () => onboardingDispatch({type: 'skip'})
return ( return (
<SafeAreaView testID="onboardingView" style={[s.hContentRegion, pal.view]}> <SafeAreaView
testID="onboardingView"
style={[
s.hContentRegion,
pal.view,
// @ts-ignore web only -esb
Platform.select({
web: {
height: '100vh',
},
}),
]}>
<ErrorBoundary> <ErrorBoundary>
{onboardingState.step === 'Welcome' && ( {onboardingState.step === 'Welcome' && (
<Welcome skip={skip} next={next} /> <Welcome skip={skip} next={next} />