about summary refs log tree commit diff
path: root/app/assets/javascripts/components/selectors
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-15 12:06:30 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-15 12:06:30 +0200
commit20f581f79669118a1a4052408078d53c7bbe83f2 (patch)
tree4fa86d90bdb0b92ce300b95fa9f3661d16b154b7 /app/assets/javascripts/components/selectors
parente21a3fe0cd91dfeae76bce4d58c7611e78b60fbf (diff)
Display follow suggestions
Diffstat (limited to 'app/assets/javascripts/components/selectors')
-rw-r--r--app/assets/javascripts/components/selectors/index.jsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/selectors/index.jsx b/app/assets/javascripts/components/selectors/index.jsx
index c1317b38e..c3c007f28 100644
--- a/app/assets/javascripts/components/selectors/index.jsx
+++ b/app/assets/javascripts/components/selectors/index.jsx
@@ -79,3 +79,9 @@ export const getNotifications = createSelector([getNotificationsBase], (base) =>
 
   return arr;
 });
+
+const getSuggestionsBase = (state) => state.getIn(['timelines', 'suggestions']);
+
+export const getSuggestions = createSelector([getSuggestionsBase, getAccounts], (base, accounts) => {
+  return base.map(accountId => accounts.get(accountId));
+});