mirror of
https://github.com/gosticks/react-table.git
synced 2026-08-28 21:00:20 +00:00
Change actions and addActions to be simpler to use
This commit is contained in:
@@ -7,10 +7,7 @@ import { addActions, actions } from '../actions'
|
||||
import { defaultState } from '../hooks/useTableState'
|
||||
|
||||
defaultState.filters = {}
|
||||
addActions({
|
||||
setFilter: '__setFilter__',
|
||||
setAllFilters: '__setAllFilters__',
|
||||
})
|
||||
addActions('setFilter', 'setAllFilters')
|
||||
|
||||
const propTypes = {
|
||||
// General
|
||||
|
||||
Reference in New Issue
Block a user