feat: landing page after logging in (#2081)

This commit is contained in:
Aaryan Khandelwal 2023-09-04 16:55:43 +05:30 committed by GitHub
parent 5e02ad8104
commit 2c9c8d5a89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 231 additions and 153 deletions

View 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 />;
});