Update login/create-account and onboard for web
This commit is contained in:
parent
df57c69f06
commit
883d5749ed
5 changed files with 428 additions and 6 deletions
|
@ -5,6 +5,7 @@ import {useStores} from '../../../state'
|
|||
import {match, MatchResult} from '../../routes'
|
||||
import {DesktopLeftColumn} from './left-column'
|
||||
import {DesktopRightColumn} from './right-column'
|
||||
import {Onboard} from '../../screens/Onboard'
|
||||
import {Login} from '../../screens/Login'
|
||||
import {ErrorBoundary} from '../../com/util/ErrorBoundary'
|
||||
import {usePalette} from '../../lib/hooks/usePalette'
|
||||
|
@ -22,6 +23,15 @@ export const WebShell: React.FC = observer(() => {
|
|||
</View>
|
||||
)
|
||||
}
|
||||
if (store.onboard.isOnboarding) {
|
||||
return (
|
||||
<View style={styles.outerContainer}>
|
||||
<ErrorBoundary>
|
||||
<Onboard />
|
||||
</ErrorBoundary>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<View style={[styles.outerContainer, pal.view]}>
|
||||
|
@ -104,12 +114,6 @@ const styles = StyleSheet.create({
|
|||
outerContainer: {
|
||||
height: '100%',
|
||||
},
|
||||
innerContainer: {
|
||||
marginLeft: 'auto',
|
||||
marginRight: 'auto',
|
||||
width: '600px',
|
||||
height: '100%',
|
||||
},
|
||||
visible: {
|
||||
display: 'flex',
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue