From cf534d4b85e6d9b0ad8d0b5cbb0819976eb14155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=87=E1=85=A1=E1=86=A8=E1=84=80=E1=85=A5=E1=86=AB?= =?UTF-8?q?=E1=84=80=E1=85=B2?= Date: Wed, 21 Aug 2024 00:53:27 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20useCreateQueryString=20=ED=9B=85=20?= =?UTF-8?q?=EC=BA=90=EB=A6=AC=EC=A7=80=EB=A6=AC=ED=84=B4=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/hooks/useCreateQueryString.tsx | 4 ---- 1 file changed, 4 deletions(-) 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 }; };