From 5f73f967356ae743a6f2e4dfb572cac554dec081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 14 Feb 2022 22:38:15 +0100 Subject: [PATCH] Minor modals cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/components/birthday_input.js | 2 +- .../features/compose/containers/privacy_dropdown_container.js | 3 +-- app/soapbox/features/ui/components/reply_mentions_modal.js | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/soapbox/components/birthday_input.js b/app/soapbox/components/birthday_input.js index 12f42bb59..26131370b 100644 --- a/app/soapbox/components/birthday_input.js +++ b/app/soapbox/components/birthday_input.js @@ -28,7 +28,7 @@ const mapStateToProps = state => { export default @connect(mapStateToProps) @injectIntl -class EditProfile extends ImmutablePureComponent { +class BirthdayInput extends ImmutablePureComponent { static propTypes = { hint: PropTypes.node, diff --git a/app/soapbox/features/compose/containers/privacy_dropdown_container.js b/app/soapbox/features/compose/containers/privacy_dropdown_container.js index a06b84b7b..702b96e1c 100644 --- a/app/soapbox/features/compose/containers/privacy_dropdown_container.js +++ b/app/soapbox/features/compose/containers/privacy_dropdown_container.js @@ -19,8 +19,7 @@ const mapDispatchToProps = dispatch => ({ isUserTouching, onModalOpen: props => dispatch(openModal('ACTIONS', props)), onModalClose: () => { - dispatch(closeModal()); - dispatch(openModal('COMPOSE')); + dispatch(closeModal('ACTIONS')); }, }); diff --git a/app/soapbox/features/ui/components/reply_mentions_modal.js b/app/soapbox/features/ui/components/reply_mentions_modal.js index 97db2b916..3685b0a51 100644 --- a/app/soapbox/features/ui/components/reply_mentions_modal.js +++ b/app/soapbox/features/ui/components/reply_mentions_modal.js @@ -36,7 +36,6 @@ const makeMapStateToProps = () => { return { mentions, author: status.getIn(['account', 'id']), - // to: state.getIn(['compose', 'to']), isReply: true, }; };