Making upload button into a smaller icon button

This commit is contained in:
Eugen Rochko
2016-11-13 19:08:52 +01:00
parent d42ed78aa4
commit 50d3083cbd
19 changed files with 85 additions and 229 deletions

View File

@ -1,29 +0,0 @@
import {
FOLLOW_CHANGE,
FOLLOW_SUBMIT_REQUEST,
FOLLOW_SUBMIT_SUCCESS,
FOLLOW_SUBMIT_FAIL
} from '../actions/follow';
import Immutable from 'immutable';
const initialState = Immutable.Map({
text: '',
is_submitting: false
});
export default function follow(state = initialState, action) {
switch(action.type) {
case FOLLOW_CHANGE:
return state.set('text', action.text);
case FOLLOW_SUBMIT_REQUEST:
return state.set('is_submitting', true);
case FOLLOW_SUBMIT_SUCCESS:
return state.withMutations(map => {
map.set('text', '').set('is_submitting', false);
});
case FOLLOW_SUBMIT_FAIL:
return state.set('is_submitting', false);
default:
return state;
}
};

View File

@ -2,7 +2,6 @@ import { combineReducers } from 'redux-immutable';
import timelines from './timelines';
import meta from './meta';
import compose from './compose';
import follow from './follow';
import notifications from './notifications';
import { loadingBarReducer } from 'react-redux-loading-bar';
import modal from './modal';
@ -16,7 +15,6 @@ export default combineReducers({
timelines,
meta,
compose,
follow,
notifications,
loadingBar: loadingBarReducer,
modal,