mirror of
https://github.com/gosticks/plane.git
synced 2025-10-16 12:45:33 +00:00
parent
0983e5f44d
commit
75f89c4c12
@ -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 {
|
||||
|
||||
@ -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();
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user