From 50d3083cbddf410e9024fb59559c46e9390a5662 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 13 Nov 2016 19:08:52 +0100 Subject: Making upload button into a smaller icon button --- .../javascripts/components/reducers/follow.jsx | 29 ---------------------- .../javascripts/components/reducers/index.jsx | 2 -- 2 files changed, 31 deletions(-) delete mode 100644 app/assets/javascripts/components/reducers/follow.jsx (limited to 'app/assets/javascripts/components/reducers') diff --git a/app/assets/javascripts/components/reducers/follow.jsx b/app/assets/javascripts/components/reducers/follow.jsx deleted file mode 100644 index ed6e8e0ef..000000000 --- a/app/assets/javascripts/components/reducers/follow.jsx +++ /dev/null @@ -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; - } -}; diff --git a/app/assets/javascripts/components/reducers/index.jsx b/app/assets/javascripts/components/reducers/index.jsx index e2203cc1a..1e015cf74 100644 --- a/app/assets/javascripts/components/reducers/index.jsx +++ b/app/assets/javascripts/components/reducers/index.jsx @@ -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, -- cgit