update
This commit is contained in:
+12
-3
@@ -1,7 +1,16 @@
|
||||
const sysinfoReducer = (state = {
|
||||
const defState = () => ({
|
||||
network: {},
|
||||
time: ''
|
||||
}, action) => {
|
||||
time: '',
|
||||
dashboard: {
|
||||
time: '',
|
||||
ip: '',
|
||||
version: '',
|
||||
di: [],
|
||||
leone: []
|
||||
}
|
||||
})
|
||||
|
||||
const sysinfoReducer = (state = defState(), action) => {
|
||||
switch(action.type) {
|
||||
case 'network_info':
|
||||
return {...state, network: action.network};
|
||||
|
||||
Reference in New Issue
Block a user