mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Email Attach Fixes
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import * as actions from './constants';
|
||||
|
||||
const initialState = {
|
||||
inProgress: false,
|
||||
};
|
||||
|
||||
export default function reducer(state = initialState, action) {
|
||||
switch (action.type) {
|
||||
case actions.STARTED_ATTACH:
|
||||
return {
|
||||
inProgress: true,
|
||||
};
|
||||
case actions.FINISH_ATTACH:
|
||||
return {
|
||||
inProgress: false,
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user