diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-03-07 11:38:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-07 11:38:52 +0100 |
commit | dba4be1038063845a74e83aaa85d6ab08d5625dd (patch) | |
tree | 860f03ea524ae14d6e78a5f7aae0e7d2729a9d76 /app/javascript/mastodon/features/explore/suggestions.js | |
parent | 292c75aa319c877406356a1cb4fb41f4ab597cfd (diff) |
Change appearance of account cards in web UI (#17689)
* Change appearance of account cards in web UI * Various fixes and improvements * Various fixes and improvements
Diffstat (limited to 'app/javascript/mastodon/features/explore/suggestions.js')
-rw-r--r-- | app/javascript/mastodon/features/explore/suggestions.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/javascript/mastodon/features/explore/suggestions.js b/app/javascript/mastodon/features/explore/suggestions.js index c094a8d93..0c6a7ef8a 100644 --- a/app/javascript/mastodon/features/explore/suggestions.js +++ b/app/javascript/mastodon/features/explore/suggestions.js @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; -import Account from 'mastodon/containers/account_container'; +import AccountCard from 'mastodon/features/directory/components/account_card'; import LoadingIndicator from 'mastodon/components/loading_indicator'; import { connect } from 'react-redux'; import { fetchSuggestions } from 'mastodon/actions/suggestions'; @@ -29,9 +29,9 @@ class Suggestions extends React.PureComponent { const { isLoading, suggestions } = this.props; return ( - <div className='explore__links'> - {isLoading ? (<LoadingIndicator />) : suggestions.map(suggestion => ( - <Account key={suggestion.get('account')} id={suggestion.get('account')} /> + <div className='explore__suggestions'> + {isLoading ? <LoadingIndicator /> : suggestions.map(suggestion => ( + <AccountCard key={suggestion.get('account')} id={suggestion.get('account')} /> ))} </div> ); |