feat: landing page after logging in (#2081)
This commit is contained in:
parent
5e02ad8104
commit
2c9c8d5a89
8 changed files with 231 additions and 153 deletions
13
space/components/views/home.tsx
Normal file
13
space/components/views/home.tsx
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// mobx
|
||||
import { observer } from "mobx-react-lite";
|
||||
import { useMobxStore } from "lib/mobx/store-provider";
|
||||
// components
|
||||
import { SignInView, UserLoggedIn } from "components/accounts";
|
||||
|
||||
export const HomeView = observer(() => {
|
||||
const { user: userStore } = useMobxStore();
|
||||
|
||||
if (!userStore.currentUser) return <SignInView />;
|
||||
|
||||
return <UserLoggedIn />;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue