Skip to content

Commit a8613cc

Browse files
committed
LPS-178343 Call next Steps page
1 parent f22478d commit a8613cc

2 files changed

Lines changed: 15 additions & 16 deletions

File tree

  • workspaces/liferay-marketplace-workspace/client-extensions/liferay-marketplace-custom-element/src

workspaces/liferay-marketplace-workspace/client-extensions/liferay-marketplace-custom-element/src/Routes.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {GetAppModal} from './components/GetAppModal/GetAppModal';
22
import {AppCreationFlow} from './pages/AppCreationFlow/AppCreationFlow';
33
import GetAppPage from './pages/GetAppPage/GetAppPage';
4+
import {NextStepPage} from './pages/NextStepPage/NextStepPage';
45
import {PublishedAppsDashboardPage} from './pages/PublishedAppsDashboardPage/PublishedAppsDashboardPage';
56
import {PurchasedAppsDashboardPage} from './pages/PurchasedAppsDashboardPage/PurchasedAppsDashboardPage';
67

@@ -21,6 +22,9 @@ export default function AppRoutes({route}: AppRoutesProps) {
2122
else if (route === 'open-modal') {
2223
return <GetAppModal handleClose={() => {}} />;
2324
}
25+
else if (route === 'next-step') {
26+
return <NextStepPage />;
27+
}
2428

2529
return <PublishedAppsDashboardPage />;
2630
}

workspaces/liferay-marketplace-workspace/client-extensions/liferay-marketplace-custom-element/src/pages/NextStepPage/NextStepPage.tsx

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,18 @@ import {Header} from '../../components/Header/Header';
66
import {NewAppPageFooterButtons} from '../../components/NewAppPageFooterButtons/NewAppPageFooterButtons';
77

88
import './NextStepPage.scss';
9-
interface NextStepPageProps {
10-
accountLogo: string;
11-
accountName: string;
12-
appCategory: string;
13-
appLogo: string;
14-
appName: string;
15-
orderId: number;
16-
}
179

18-
export function NextStepPage({
19-
accountLogo,
20-
accountName,
21-
appCategory,
22-
appLogo,
23-
appName,
24-
orderId,
25-
}: NextStepPageProps) {
10+
export function NextStepPage() {
11+
const queryString = window.location.search;
12+
const urlParams = new URLSearchParams(queryString);
13+
14+
const accountLogo = urlParams.get('logoURL') as string;
15+
const accountName = urlParams.get('accountName') as string;
16+
const appCategory = urlParams.get('appCategory') as string;
17+
const appLogo = urlParams.get('appLogoURL') as string;
18+
const appName = urlParams.get('appName') as string;
19+
const orderId = urlParams.get('orderId') as string;
20+
2621
return (
2722
<>
2823
<div className="next-step-page-container">

0 commit comments

Comments
 (0)