Skip to content

Commit

Permalink
feat: resetSelectedIds 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
junseublim committed Jan 22, 2025
1 parent e8503c0 commit d6dcc53
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/app/board/[boardId]/_contexts/SelectModeContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ interface SelectContextProps {
selectedIds: number[]
setIsSelectMode: (isSelectMode: boolean) => void
toggleSelectedId: (id: number) => void
resetSelectedIds: () => void
MAX_SELECT_COUNT: number
}

Expand All @@ -17,7 +16,6 @@ const SelectContext = createContext<SelectContextProps>({
selectedIds: [],
setIsSelectMode: () => {},
toggleSelectedId: () => {},
resetSelectedIds: () => {},
MAX_SELECT_COUNT: 0,
})

Expand Down Expand Up @@ -60,18 +58,13 @@ export const SelectContextProvider = ({
}
}

const resetSelectedIds = () => {
setSelectedIds([])
}

const value = useMemo(
() => ({
isSelectMode,
setIsSelectMode,
selectedIds,
toggleSelectedId,
MAX_SELECT_COUNT: 9,
resetSelectedIds,
}),
[isSelectMode, selectedIds],
)
Expand Down

0 comments on commit d6dcc53

Please sign in to comment.