Add logic to filter input field

Add correct css to input field addon icon
This commit is contained in:
Berkeley Martinez
2016-03-23 15:01:01 -07:00
parent 82d42132df
commit b9dfc254f4
7 changed files with 63 additions and 25 deletions

View File

@@ -3,7 +3,8 @@ import { handleActions } from 'redux-actions';
import types from './types';
const initialState = {
superBlocks: []
superBlocks: [],
filter: ''
};
export default handleActions(
@@ -11,6 +12,10 @@ export default handleActions(
[types.fetchChallengesCompleted]: (state, { payload = [] }) => ({
...state,
superBlocks: payload
}),
[types.updateFilter]: (state, { payload = ''}) => ({
...state,
filter: payload
})
},
initialState