about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/follow_recommendations/index.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2021-05-05 23:57:29 +0200
committerClaire <claire.github-309c@sitedethib.com>2021-05-07 22:00:11 +0200
commitb571bc3278e39fda2caaa6663cdfd0015eb716b7 (patch)
treecec73ad25a098dc7f3367da85f48169eec8ed34f /app/javascript/flavours/glitch/features/follow_recommendations/index.js
parent56135a77f912265d933aaee4edcb61882446a677 (diff)
[Glitch] Add empty state message for follow recommendations in web UI
Port 8d75bd002da5011237b537b522a5b6248e99b9d5 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/follow_recommendations/index.js')
-rw-r--r--app/javascript/flavours/glitch/features/follow_recommendations/index.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/javascript/flavours/glitch/features/follow_recommendations/index.js b/app/javascript/flavours/glitch/features/follow_recommendations/index.js
index ac75062e0..aea841bd6 100644
--- a/app/javascript/flavours/glitch/features/follow_recommendations/index.js
+++ b/app/javascript/flavours/glitch/features/follow_recommendations/index.js
@@ -75,10 +75,14 @@ class FollowRecommendations extends ImmutablePureComponent {
 
           {!isLoading && (
             <React.Fragment>
-              <div>
-                {suggestions.map(suggestion => (
+              <div className='column-list'>
+                {suggestions.size > 0 ? suggestions.map(suggestion => (
                   <Account key={suggestion.get('account')} id={suggestion.get('account')} />
-                ))}
+                )) : (
+                  <div className='column-list__empty-message'>
+                    <FormattedMessage id='empty_column.follow_recommendations' defaultMessage='Looks like no suggestions could be generated for you. You can try using search to look for people you might know or explore trending hashtags.' />
+                  </div>
+                )}
               </div>
 
               <div className='column-actions'>