From d0600aef02bd05c58a242a08f60e8cf62cb31d89 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 27 Jan 2021 19:38:05 -0600 Subject: [PATCH] Refactor Follow button and remote follow --- .../features/ui/components/action_button.js | 32 ++++++++++++++----- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/app/soapbox/features/ui/components/action_button.js b/app/soapbox/features/ui/components/action_button.js index 830ce33a8..47dfb30b1 100644 --- a/app/soapbox/features/ui/components/action_button.js +++ b/app/soapbox/features/ui/components/action_button.js @@ -82,26 +82,42 @@ class ActionButton extends ImmutablePureComponent { render() { const { account, intl, me, small } = this.props; - let actionBtn = null; + const empty = <>; if (!me) { - actionBtn =