From 409340a2a666e67914d70e997f52e1105f4ac64c Mon Sep 17 00:00:00 2001 From: Sean King Date: Thu, 18 Jun 2020 20:03:44 +0000 Subject: [PATCH] Else if audio. Let's get an idea of what this could look like first. --- .../report/components/status_check_box.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/soapbox/features/report/components/status_check_box.js b/app/soapbox/features/report/components/status_check_box.js index c3853736f..c8e5984a2 100644 --- a/app/soapbox/features/report/components/status_check_box.js +++ b/app/soapbox/features/report/components/status_check_box.js @@ -48,6 +48,22 @@ export default class StatusCheckBox extends React.PureComponent { )} ); + } else if (status.getIn(['media_attacjments', 0, 'type']) === 'audio') { + const audio = status.getIn(['media_attachments', 0]); + + media = ( + + {Component => ( + + )} + + ); } else { media = (