Skip to content

Commit

Permalink
AttachmentCommentFragment: Convert back to a named function
Browse files Browse the repository at this point in the history
  • Loading branch information
cubuspl42 committed Nov 14, 2023
1 parent 7b5d1fc commit 66092e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/home/report/comment/AttachmentCommentFragment.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ const propTypes = {
addExtraMargin: PropTypes.bool.isRequired,
};

const AttachmentCommentFragment = ({addExtraMargin, html, source}) => (
<View style={addExtraMargin ? styles.mt2 : {}}>
function AttachmentCommentFragment({addExtraMargin, html, source}) {
return <View style={addExtraMargin ? styles.mt2 : {}}>
<RenderCommentHTML
source={source}
html={html}
/>
</View>
);
</View>;
}

AttachmentCommentFragment.propTypes = propTypes;
AttachmentCommentFragment.displayName = 'AttachmentCommentFragment';
Expand Down

0 comments on commit 66092e7

Please sign in to comment.