Revert "feat: fix the problem in the Operator Market frontend pages"

This commit is contained in:
Kecheng Sha
2025-12-29 12:00:37 +08:00
committed by GitHub
parent 8f30f71a68
commit 0df7a872e4
213 changed files with 45537 additions and 45547 deletions

View File

@@ -1,18 +1,18 @@
import { useMemo } from "react";
import { useLocation } from "react-router";
interface AnyObject {
[key: string]: any;
}
export function useSearchParams(): AnyObject {
const { search } = useLocation();
return useMemo(() => {
const urlParams = new URLSearchParams(search);
const params: AnyObject = {};
for (const [key, value] of urlParams.entries()) {
params[key] = value;
}
return params;
}, [search]);
}
import { useMemo } from "react";
import { useLocation } from "react-router";
interface AnyObject {
[key: string]: any;
}
export function useSearchParams(): AnyObject {
const { search } = useLocation();
return useMemo(() => {
const urlParams = new URLSearchParams(search);
const params: AnyObject = {};
for (const [key, value] of urlParams.entries()) {
params[key] = value;
}
return params;
}, [search]);
}