Sync: Community Changes #3425

Sync: Community Changes
This commit is contained in:
pushya22
2025-06-17 14:29:58 +05:30
committed by GitHub
2 changed files with 7 additions and 9 deletions

View File

@@ -70,10 +70,9 @@ export type TAuthErrorInfo = {
type: EErrorAlertType;
code: EAuthErrorCodes;
title: string;
message: React.ReactNode;
message: any;
};
export enum EAdminAuthErrorCodes {
// Admin
ADMIN_ALREADY_EXIST = "5150",
@@ -91,7 +90,7 @@ export type TAdminAuthErrorInfo = {
type: EErrorAlertType;
code: EAdminAuthErrorCodes;
title: string;
message: React.ReactNode;
message: any;
};
export enum EAuthErrorCodes {

View File

@@ -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();
};