diff --git a/packages/console/src/cloud/pages/About/index.tsx b/packages/console/src/cloud/pages/About/index.tsx index 322f27515..d1d50ac86 100644 --- a/packages/console/src/cloud/pages/About/index.tsx +++ b/packages/console/src/cloud/pages/About/index.tsx @@ -15,8 +15,8 @@ import TextInput from '@/components/TextInput'; import ActionBar from '../../components/ActionBar'; import { CardSelector, MultiCardSelector } from '../../components/CardSelector'; import type { Questionnaire } from '../../types'; -import { CloudPage } from '../../types'; -import { getCloudPagePathname } from '../../utils'; +import { OnboardPage } from '../../types'; +import { getOnboardPagePathname } from '../../utils'; import * as styles from './index.module.scss'; import { titleOptions, companySizeOptions, reasonOptions } from './options'; @@ -43,11 +43,11 @@ const About = () => { const onNext = async () => { await onSubmit(); - navigate(getCloudPagePathname(CloudPage.SignInExperience)); + navigate(getOnboardPagePathname(OnboardPage.SignInExperience)); }; const onBack = async () => { - navigate(getCloudPagePathname(CloudPage.Welcome)); + navigate(getOnboardPagePathname(OnboardPage.Welcome)); }; return ( diff --git a/packages/console/src/cloud/pages/Congrats/index.tsx b/packages/console/src/cloud/pages/Congrats/index.tsx index 0465b6b47..4d7fe4c0e 100644 --- a/packages/console/src/cloud/pages/Congrats/index.tsx +++ b/packages/console/src/cloud/pages/Congrats/index.tsx @@ -13,8 +13,8 @@ import Divider from '@/components/Divider'; import OverlayScrollbar from '@/components/OverlayScrollbar'; import { AppEndpointsContext } from '@/containers/AppEndpointsProvider'; -import { CloudPage } from '../../types'; -import { getCloudPagePathname } from '../../utils'; +import { OnboardPage } from '../../types'; +import { getOnboardPagePathname } from '../../utils'; import * as styles from './index.module.scss'; const Congrats = () => { @@ -28,7 +28,7 @@ const Congrats = () => { }; const handleBack = () => { - navigate(getCloudPagePathname(CloudPage.SignInExperience)); + navigate(getOnboardPagePathname(OnboardPage.SignInExperience)); }; return ( diff --git a/packages/console/src/cloud/pages/Onboard/index.tsx b/packages/console/src/cloud/pages/Onboard/index.tsx index 2b3b750b3..f0a2eed1a 100644 --- a/packages/console/src/cloud/pages/Onboard/index.tsx +++ b/packages/console/src/cloud/pages/Onboard/index.tsx @@ -2,8 +2,8 @@ import { conditional } from '@silverhand/essentials'; import { Navigate, Route, Routes } from 'react-router-dom'; import useUserOnboardingData from '@/cloud/hooks/use-user-onboarding-data'; -import { CloudPage } from '@/cloud/types'; -import { getCloudPagePathname } from '@/cloud/utils'; +import { OnboardPage } from '@/cloud/types'; +import { getOnboardPagePathname } from '@/cloud/utils'; import NotFound from '@/pages/NotFound'; import About from '../About'; @@ -11,7 +11,7 @@ import Congrats from '../Congrats'; import Welcome from '../Welcome'; import * as styles from './index.module.scss'; -const welcomePathname = getCloudPagePathname(CloudPage.Welcome); +const welcomePathname = getOnboardPagePathname(OnboardPage.Welcome); const Onboard = () => { const { @@ -27,15 +27,15 @@ const Onboard = () => {