Skip to content

Commit

Permalink
fix: change the type of setCurrentPage and setTotalCount
Browse files Browse the repository at this point in the history
  • Loading branch information
KimJoonSeo committed Dec 27, 2023
1 parent fec970d commit 1cae139
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contexts/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {createContext, useState} from "react";

const setCurrentPage: React.Dispatch<React.SetStateAction<number>> = () => {}
const setTotalCount: React.Dispatch<React.SetStateAction<number>> = () => {}
const setCurrentPage: Function = () => {}
const setTotalCount: Function = () => {}
const PaginationContext = createContext({
state: { currentPage: 1, totalCount: 1},
actions: {
Expand Down

0 comments on commit 1cae139

Please sign in to comment.