forked from github/plane
9482cc3a73
* fix: 404 when redirecting user to login page * fix: next_path redirection not working * fix: authentication workflow update in plane deploy --------- Co-authored-by: gurusainath <gurusainath007@gmail.com>
20 lines
533 B
TypeScript
20 lines
533 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();
|
|
|
|
return (
|
|
<>
|
|
{userStore?.loader ? (
|
|
<div className="relative w-screen h-screen flex justify-center items-center">Loading</div>
|
|
) : (
|
|
<>{userStore.currentUser ? <UserLoggedIn /> : <SignInView />}</>
|
|
)}
|
|
</>
|
|
);
|
|
});
|