diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-26 21:03:50 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-26 21:03:50 -0600 |
commit | 883d5749ed41608d6934217df315826002769e85 (patch) | |
tree | 74e77b2ebe300230e427d8bf6f6e60e36a86bffb /src/view/shell/web/index.tsx | |
parent | df57c69f0618948f945af7549c4b0b13a096b1b1 (diff) | |
download | voidsky-883d5749ed41608d6934217df315826002769e85.tar.zst |
Update login/create-account and onboard for web
Diffstat (limited to 'src/view/shell/web/index.tsx')
-rw-r--r-- | src/view/shell/web/index.tsx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/view/shell/web/index.tsx b/src/view/shell/web/index.tsx index fedc9c3d6..1059aa280 100644 --- a/src/view/shell/web/index.tsx +++ b/src/view/shell/web/index.tsx @@ -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', }, |