From 75f89c4c12f3e96ff3e66fda920cfda49cda9d8a Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Tue, 17 Jun 2025 14:08:50 +0530 Subject: [PATCH] fix: docker build (#7220) * fix: docker build * fix: build --- packages/constants/src/auth.ts | 5 ++--- packages/utils/src/router.ts | 11 +++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/constants/src/auth.ts b/packages/constants/src/auth.ts index 01ed762ff..1b6cb9111 100644 --- a/packages/constants/src/auth.ts +++ b/packages/constants/src/auth.ts @@ -71,10 +71,9 @@ export type TAuthErrorInfo = { type: EErrorAlertType; code: EAuthErrorCodes; title: string; - message: React.ReactNode; + message: any; }; - export enum EAdminAuthErrorCodes { // Admin ADMIN_ALREADY_EXIST = "5150", @@ -92,7 +91,7 @@ export type TAdminAuthErrorInfo = { type: EErrorAlertType; code: EAdminAuthErrorCodes; title: string; - message: React.ReactNode; + message: any; }; export enum EAuthErrorCodes { diff --git a/packages/utils/src/router.ts b/packages/utils/src/router.ts index 4b795e7e2..e9355de9f 100644 --- a/packages/utils/src/router.ts +++ b/packages/utils/src/router.ts @@ -1,9 +1,8 @@ -import { ReadonlyURLSearchParams } from "next/navigation"; - -export const generateQueryParams = (searchParams: ReadonlyURLSearchParams, excludedParamKeys?: string[]): string => { +export const generateQueryParams = (searchParams: URLSearchParams, excludedParamKeys?: string[]): string => { const params = new URLSearchParams(searchParams); - excludedParamKeys && excludedParamKeys.forEach((key) => { - params.delete(key); - }); + excludedParamKeys && + excludedParamKeys.forEach((key) => { + params.delete(key); + }); return params.toString(); };