From 1cae1390e082e9517879cc3c195dca723649dc16 Mon Sep 17 00:00:00 2001 From: KimJoonSeo Date: Wed, 27 Dec 2023 23:23:47 +0900 Subject: [PATCH] fix: change the type of setCurrentPage and setTotalCount --- src/contexts/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contexts/index.tsx b/src/contexts/index.tsx index 407ef48..d14e12b 100644 --- a/src/contexts/index.tsx +++ b/src/contexts/index.tsx @@ -1,7 +1,7 @@ import {createContext, useState} from "react"; -const setCurrentPage: React.Dispatch> = () => {} -const setTotalCount: React.Dispatch> = () => {} +const setCurrentPage: Function = () => {} +const setTotalCount: Function = () => {} const PaginationContext = createContext({ state: { currentPage: 1, totalCount: 1}, actions: {