Refactor UI, Add ability to remove suggestions

This commit is contained in:
2017-01-01 08:10:58 -05:00
parent d7adb27c10
commit 0400dd06b6
10 changed files with 222 additions and 55 deletions

View File

@ -18,6 +18,10 @@ module.exports = function(state = {}, action) {
[suggestion.SuggestionId]: suggestion
});
return suggestions;
case SuggestionConstants.SUGGESTION_REMOVED:
var suggestions = assign({}, state);
delete suggestions[action.suggestionId];
return suggestions;
case UserConstants.USER_LOGGEDOUT:
return {};
default: