From 00d1fd67acdf602da8b67d3b65458bb2a920fc00 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 1 Jun 2021 10:21:24 -0500 Subject: [PATCH] Fix chats "Message" button for intermediate screen sizes --- .../features/account_timeline/containers/header_container.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/soapbox/features/account_timeline/containers/header_container.js b/app/soapbox/features/account_timeline/containers/header_container.js index fdf0b19e3..09026def0 100644 --- a/app/soapbox/features/account_timeline/containers/header_container.js +++ b/app/soapbox/features/account_timeline/containers/header_container.js @@ -23,7 +23,6 @@ import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { List as ImmutableList } from 'immutable'; import { getSettings } from 'soapbox/actions/settings'; import { startChat, openChat } from 'soapbox/actions/chats'; -import { isMobile } from 'soapbox/is_mobile'; import { deactivateUserModal, deleteUserModal } from 'soapbox/actions/moderation'; import { tagUsers, untagUsers } from 'soapbox/actions/admin'; import snackbar from 'soapbox/actions/snackbar'; @@ -37,6 +36,8 @@ const messages = defineMessages({ userUnverified: { id: 'admin.users.user_unverified_message', defaultMessage: '@{acct} was unverified' }, }); +const isMobile = width => width <= 1190; + const makeMapStateToProps = () => { const getAccount = makeGetAccount();