Skip to content

Commit

Permalink
Propagate strike-through style to reportActionFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulo Vale committed Sep 2, 2022
1 parent 8d008fa commit f95f142
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/home/report/ReportActionItemFragment.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const defaultProps = {
isSingleLine: false,
tooltipText: '',
source: '',
style: [],
};

const ReportActionItemFragment = (props) => {
Expand Down Expand Up @@ -119,7 +120,7 @@ const ReportActionItemFragment = (props) => {
<Text
family="EMOJI_TEXT_FONT"
selectable={!canUseTouchScreen() || !props.isSmallScreenWidth}
style={[EmojiUtils.containsOnlyEmojis(text) ? styles.onlyEmojisText : undefined, styles.ltr]}
style={[EmojiUtils.containsOnlyEmojis(text) ? styles.onlyEmojisText : undefined, styles.ltr, ...props.style]}
>
{StyleUtils.convertToLTR(Str.htmlDecode(text))}
{props.fragment.isEdited && (
Expand Down
1 change: 1 addition & 0 deletions src/pages/home/report/ReportActionItemMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const ReportActionItemMessage = (props) => {
attachmentInfo={props.action.attachmentInfo}
source={lodashGet(props.action, 'originalMessage.source')}
loading={props.action.isLoading}
style={props.style}
/>
))}
</View>
Expand Down

0 comments on commit f95f142

Please sign in to comment.