forked from github/plane
chore: shifted index page to /home route
This commit is contained in:
parent
cdfff12f4f
commit
d5555117e5
@ -33,7 +33,7 @@ export const SignInView = observer(() => {
|
|||||||
const onSignInSuccess = (response: any) => {
|
const onSignInSuccess = (response: any) => {
|
||||||
const isOnboarded = response?.user?.onboarding_step?.profile_complete || false;
|
const isOnboarded = response?.user?.onboarding_step?.profile_complete || false;
|
||||||
|
|
||||||
const nextPath = router.asPath.includes("next_path") ? router.asPath.split("/?next_path=")[1] : "/";
|
const nextPath = router.asPath.includes("next_path") ? router.asPath.split("/?next_path=")[1] : "/home";
|
||||||
|
|
||||||
userStore.setCurrentUser(response?.user);
|
userStore.setCurrentUser(response?.user);
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ export const SignInView = observer(() => {
|
|||||||
router.push(`/onboarding?next_path=${nextPath}`);
|
router.push(`/onboarding?next_path=${nextPath}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
router.push((nextPath ?? "/").toString());
|
router.push((nextPath ?? "/home").toString());
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleGoogleSignIn = async ({ clientId, credential }: any) => {
|
const handleGoogleSignIn = async ({ clientId, credential }: any) => {
|
||||||
|
8
space/pages/home/index.tsx
Normal file
8
space/pages/home/index.tsx
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import React from "react";
|
||||||
|
|
||||||
|
// components
|
||||||
|
import { HomeView } from "components/views";
|
||||||
|
|
||||||
|
const HomePage = () => <HomeView />;
|
||||||
|
|
||||||
|
export default HomePage;
|
@ -1,8 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
// components
|
const space = () => <></>;
|
||||||
import { HomeView } from "components/views";
|
|
||||||
|
|
||||||
const HomePage = () => <HomeView />;
|
export default space;
|
||||||
|
|
||||||
export default HomePage;
|
|
||||||
|
Loading…
Reference in New Issue
Block a user