diff --git a/app/soapbox/features/ui/components/profile_dropdown.js b/app/soapbox/features/ui/components/profile_dropdown.js index c53533d7f..0836682ba 100644 --- a/app/soapbox/features/ui/components/profile_dropdown.js +++ b/app/soapbox/features/ui/components/profile_dropdown.js @@ -9,10 +9,11 @@ import { isStaff } from 'soapbox/utils/accounts'; import { defineMessages, injectIntl } from 'react-intl'; import { logOut, switchAccount } from 'soapbox/actions/auth'; import { List as ImmutableList } from 'immutable'; +import Avatar from 'soapbox/components/avatar'; +import DisplayName from 'soapbox/components/display_name'; const messages = defineMessages({ add: { id: 'profile_dropdown.add_account', defaultMessage: 'Add an existing account' }, - switch: { id: 'profile_dropdown.switch_account', defaultMessage: 'Switch to @{acct}' }, logout: { id: 'profile_dropdown.logout', defaultMessage: 'Log out @{acct}' }, }); @@ -76,6 +77,19 @@ class ProfileDropdown extends React.PureComponent { this.props.dispatch(fetchOwnAccounts()); } + renderAccount = account => { + return ( +