diff --git a/frontend/src/hooks/useCreateQueryString.tsx b/frontend/src/hooks/useCreateQueryString.tsx index ebe976d8..fad9fce0 100644 --- a/frontend/src/hooks/useCreateQueryString.tsx +++ b/frontend/src/hooks/useCreateQueryString.tsx @@ -1,18 +1,14 @@ import { useCallback } from "react"; import { useSearchParams } from "next/navigation"; - export const useCreateQueryString = () => { const searchParams = useSearchParams(); - const createQueryString = useCallback( (name: string[], value: string[]) => { const params = new URLSearchParams(searchParams.toString()); name.forEach((el, index) => params.set(el, value[index] || "")); - return params.toString(); }, [searchParams] ); - return { createQueryString }; };