Adding following/followers lists to the UI
This commit is contained in:
parent
909d0d5e88
commit
1c84d505c8
16 changed files with 369 additions and 30 deletions
13
app/assets/javascripts/components/reducers/suggestions.jsx
Normal file
13
app/assets/javascripts/components/reducers/suggestions.jsx
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { SUGGESTIONS_FETCH_SUCCESS } from '../actions/suggestions';
|
||||
import Immutable from 'immutable';
|
||||
|
||||
const initialState = Immutable.List();
|
||||
|
||||
export default function suggestions(state = initialState, action) {
|
||||
switch(action.type) {
|
||||
case SUGGESTIONS_FETCH_SUCCESS:
|
||||
return Immutable.List(action.accounts.map(item => item.id));
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue