mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
88a35efa06
* chore: shifted index page to /home route * chore: added rewrite logic, to rewrite index to /home * chore: routed home to login route as login page * chore: updated nginx config to route to login * chore: updated path for home
14 lines
361 B
TypeScript
14 lines
361 B
TypeScript
// mobx
|
|
import { observer } from "mobx-react-lite";
|
|
import { useMobxStore } from "lib/mobx/store-provider";
|
|
// components
|
|
import { SignInView, UserLoggedIn } from "components/accounts";
|
|
|
|
export const LoginView = observer(() => {
|
|
const { user: userStore } = useMobxStore();
|
|
|
|
if (!userStore.currentUser) return <SignInView />;
|
|
|
|
return <UserLoggedIn />;
|
|
});
|