at the end of the day, it was inevitable
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import GenericTable from './genericTable'
|
||||
import * as api from '../../../../../api/groupsApi'
|
||||
|
||||
class GroupsTable extends GenericTable {
|
||||
|
||||
constructor () {
|
||||
super(api)
|
||||
}
|
||||
|
||||
getNamespace () {
|
||||
return '[Groups table]'
|
||||
}
|
||||
|
||||
getInitialState () {
|
||||
const state = super.getInitialState()
|
||||
return {
|
||||
...state,
|
||||
filter: ''
|
||||
}
|
||||
}
|
||||
|
||||
getDataFromResponse (response) {
|
||||
return response['groups']
|
||||
}
|
||||
|
||||
getTableState (state) {
|
||||
return state.getIn(['appState', 'share', 'tables', 'groups'])
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const instance = new GroupsTable()
|
||||
instance.init()
|
||||
export default instance
|
||||
Reference in New Issue
Block a user