Add logic to filter input field
Add correct css to input field addon icon
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user