From eb342a608218862a831dbdcbe446d56be27f928b Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 29 Dec 2023 17:47:30 +0100 Subject: [PATCH] Fix media attachments not being hidden in report modal in glitch flavor --- .../flavours/glitch/components/media_attachments.jsx | 8 ++++---- .../features/report/components/status_check_box.jsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/javascript/flavours/glitch/components/media_attachments.jsx b/app/javascript/flavours/glitch/components/media_attachments.jsx index 4e777437a0..9dd3fcfd95 100644 --- a/app/javascript/flavours/glitch/components/media_attachments.jsx +++ b/app/javascript/flavours/glitch/components/media_attachments.jsx @@ -15,7 +15,7 @@ export default class MediaAttachments extends ImmutablePureComponent { lang: PropTypes.string, height: PropTypes.number, width: PropTypes.number, - revealed: PropTypes.bool, + visible: PropTypes.bool, }; static defaultProps = { @@ -52,7 +52,7 @@ export default class MediaAttachments extends ImmutablePureComponent { }; render () { - const { status, width, height, revealed } = this.props; + const { status, width, height, visible } = this.props; const mediaAttachments = status.get('media_attachments'); const language = status.getIn(['language', 'translation']) || status.get('language') || this.props.lang; @@ -100,7 +100,7 @@ export default class MediaAttachments extends ImmutablePureComponent { height={height} inline sensitive={status.get('sensitive')} - revealed={revealed} + visible={visible} onOpenVideo={noop} /> )} @@ -115,7 +115,7 @@ export default class MediaAttachments extends ImmutablePureComponent { lang={language} sensitive={status.get('sensitive')} defaultWidth={width} - revealed={revealed} + visible={visible} height={height} onOpenMedia={noop} /> diff --git a/app/javascript/flavours/glitch/features/report/components/status_check_box.jsx b/app/javascript/flavours/glitch/features/report/components/status_check_box.jsx index a368c41ce6..5fe6888dc5 100644 --- a/app/javascript/flavours/glitch/features/report/components/status_check_box.jsx +++ b/app/javascript/flavours/glitch/features/report/components/status_check_box.jsx @@ -45,7 +45,7 @@ class StatusCheckBox extends PureComponent { - } /> + } /> );