chore: prepare todolists reducer for rtk (use single argument in action creators)

This commit is contained in:
2024-08-17 17:51:19 +02:00
parent 73fbe68b9f
commit f154e0385a
3 changed files with 38 additions and 11 deletions

View File

@@ -80,7 +80,7 @@ export const TodolistsList: React.FC<PropsType> = ({ demo = false }) => {
value: FilterValuesType,
todolistId: string
) {
const action = changeTodolistFilterAC(todolistId, value)
const action = changeTodolistFilterAC({ id: todolistId, filter: value })
dispatch(action)
}, [])