chore: shifted index page to /home route

This commit is contained in:
Henit Chobisa 2023-09-21 11:53:37 +00:00
parent cdfff12f4f
commit d5555117e5
3 changed files with 12 additions and 7 deletions

View File

@ -33,7 +33,7 @@ export const SignInView = observer(() => {
const onSignInSuccess = (response: any) => {
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);
@ -41,7 +41,7 @@ export const SignInView = observer(() => {
router.push(`/onboarding?next_path=${nextPath}`);
return;
}
router.push((nextPath ?? "/").toString());
router.push((nextPath ?? "/home").toString());
};
const handleGoogleSignIn = async ({ clientId, credential }: any) => {

View File

@ -0,0 +1,8 @@
import React from "react";
// components
import { HomeView } from "components/views";
const HomePage = () => <HomeView />;
export default HomePage;

View File

@ -1,8 +1,5 @@
import React from "react";
// components
import { HomeView } from "components/views";
const space = () => <></>;
const HomePage = () => <HomeView />;
export default HomePage;
export default space;