mirror of
https://github.com/gosticks/react-table.git
synced 2026-10-05 07:16:55 +00:00
Change actions and addActions to be simpler to use
This commit is contained in:
@@ -8,10 +8,7 @@ import { defaultState } from '../hooks/useTableState'
|
||||
defaultState.pageSize = 10
|
||||
defaultState.pageIndex = 0
|
||||
|
||||
addActions({
|
||||
pageChange: '__pageChange__',
|
||||
pageSizeChange: '__pageSizeChange__',
|
||||
})
|
||||
addActions('pageChange', 'pageSizeChange')
|
||||
|
||||
const propTypes = {
|
||||
// General
|
||||
|
||||
Reference in New Issue
Block a user