diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-03-13 23:30:12 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-03-13 23:30:12 -0500 |
commit | 774fb8371905473b88b26c350818aa6b4bf1bac2 (patch) | |
tree | ceee7f24ce3696b8890ef7bb3eb42bb04ba1078e /src/view/shell/index.web.tsx | |
parent | b5c64a03b6cf91fb1699d2e87d3fded43a5dbb46 (diff) | |
download | voidsky-774fb8371905473b88b26c350818aa6b4bf1bac2.tar.zst |
Rework logged out state to preserve routing and work for web
Diffstat (limited to 'src/view/shell/index.web.tsx')
-rw-r--r-- | src/view/shell/index.web.tsx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/view/shell/index.web.tsx b/src/view/shell/index.web.tsx index 9a97505e8..a588c99a1 100644 --- a/src/view/shell/index.web.tsx +++ b/src/view/shell/index.web.tsx @@ -4,7 +4,6 @@ import {View, StyleSheet} from 'react-native' import {useStores} from 'state/index' import {DesktopLeftNav} from './desktop/LeftNav' import {DesktopRightNav} from './desktop/RightNav' -import {Login} from '../screens/Login' import {ErrorBoundary} from '../com/util/ErrorBoundary' import {Lightbox} from '../com/lightbox/Lightbox' import {ModalsContainer} from '../com/modals/Modal' @@ -45,21 +44,10 @@ const ShellInner = observer(() => { export const Shell: React.FC = observer(() => { const pageBg = useColorSchemeStyle(styles.bgLight, styles.bgDark) - const store = useStores() if (isMobileWeb) { return <NoMobileWeb /> } - - if (!store.session.hasSession) { - return ( - <View style={[s.hContentRegion, pageBg]}> - <Login /> - <ModalsContainer /> - </View> - ) - } - return ( <View style={[s.hContentRegion, pageBg]}> <RoutesContainer> |