feat: [VAN-1291] add recommendation page (#743)

This commit is contained in:
Attiya Ishaque
2023-02-17 17:02:25 +05:00
committed by GitHub
parent ee6a6f0d2d
commit 1f21a874b8
15 changed files with 409 additions and 15 deletions

View File

@@ -49,8 +49,8 @@ export const updatePathWithQueryParams = (path) => {
return `${path}${queryParams}`;
};
export const getAllPossibleQueryParams = () => {
const urlParams = QueryString.parse(window.location.search);
export const getAllPossibleQueryParams = (locationURl = null) => {
const urlParams = QueryString.parse(locationURl || window.location.search);
const params = {};
Object.entries(urlParams).forEach(([key, value]) => {
if (AUTH_PARAMS.indexOf(key) > -1) {