2 changed files with 9448 additions and 0 deletions
@ -0,0 +1,25 @@ |
|||||
|
export default { |
||||
|
namespace: 'logout', |
||||
|
|
||||
|
state: { |
||||
|
status: undefined, |
||||
|
}, |
||||
|
|
||||
|
effects: { |
||||
|
* logoutSubmit({ payload }, { put }) { |
||||
|
yield put({ |
||||
|
type: 'logout', |
||||
|
payload, |
||||
|
}); |
||||
|
}, |
||||
|
}, |
||||
|
|
||||
|
reducers: { |
||||
|
logout(state, { payload }) { |
||||
|
return { |
||||
|
...state, |
||||
|
status: payload.status, |
||||
|
}; |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
File diff suppressed because it is too large
Loading…
Reference in new issue