mirror of
https://github.com/gosticks/react-table.git
synced 2026-08-25 11:20:31 +00:00
Change actions and addActions to be simpler to use
This commit is contained in:
@@ -7,10 +7,7 @@ import { defaultState } from '../hooks/useTableState'
|
||||
|
||||
defaultState.expanded = {}
|
||||
|
||||
addActions({
|
||||
toggleExpanded: '__toggleExpanded__',
|
||||
useExpanded: '__useExpanded__',
|
||||
})
|
||||
addActions('toggleExpanded', 'useExpanded')
|
||||
|
||||
const propTypes = {
|
||||
manualExpandedKey: PropTypes.string,
|
||||
|
||||
Reference in New Issue
Block a user