From 331c2b6888414941d1898e1c1aefef3fcf299f0b Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 15 Nov 2023 18:18:43 +0100 Subject: [PATCH] Further reduce divergences with upstream (at that point in time) --- .../flavours/glitch/components/account.jsx | 27 +++++++------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/app/javascript/flavours/glitch/components/account.jsx b/app/javascript/flavours/glitch/components/account.jsx index 267a4e66aa0012..701c6be71561ba 100644 --- a/app/javascript/flavours/glitch/components/account.jsx +++ b/app/javascript/flavours/glitch/components/account.jsx @@ -15,10 +15,11 @@ import Permalink from './permalink'; import { RelativeTimestamp } from './relative_timestamp'; + const messages = defineMessages({ follow: { id: 'account.follow', defaultMessage: 'Follow' }, unfollow: { id: 'account.unfollow', defaultMessage: 'Unfollow' }, - requested: { id: 'account.requested', defaultMessage: 'Awaiting approval. Click to cancel follow request' }, + requested: { id: 'account.requested', defaultMessage: 'Awaiting approval' }, unblock: { id: 'account.unblock', defaultMessage: 'Unblock @{name}' }, unmute: { id: 'account.unmute', defaultMessage: 'Unmute @{name}' }, mute_notifications: { id: 'account.mute_notifications', defaultMessage: 'Mute notifications from @{name}' }, @@ -73,16 +74,7 @@ class Account extends ImmutablePureComponent { }; render () { - const { - account, - hidden, - intl, - onActionClick, - actionIcon, - actionTitle, - defaultAction, - size, - } = this.props; + const { account, intl, hidden, onActionClick, actionIcon, actionTitle, defaultAction, size } = this.props; if (!account) { return ( @@ -108,8 +100,8 @@ class Account extends ImmutablePureComponent { let buttons; - if (onActionClick) { - if (actionIcon) { + if (actionIcon) { + if (onActionClick) { buttons = ; } } else if (account.get('id') !== me && account.get('relationship', null) !== null) { @@ -157,11 +149,10 @@ class Account extends ImmutablePureComponent { {mute_expires_at} - {buttons ? -
- {buttons} -
- : null} + +
+ {buttons} +
);