Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Apr 13, 2024
1 parent 93be4c5 commit 909ec73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/ReportActionItem/TaskAction.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import ExpensiMark from 'expensify-common/lib/ExpensiMark';
import React from 'react';
import {View} from 'react-native';
import type {OnyxEntry} from 'react-native-onyx';
Expand All @@ -6,7 +7,6 @@ import Text from '@components/Text';
import useThemeStyles from '@hooks/useThemeStyles';
import * as TaskUtils from '@libs/TaskUtils';
import type {ReportAction} from '@src/types/onyx';
import ExpensiMark from 'expensify-common/lib/ExpensiMark';

type TaskActionProps = {
/** Name of the reportAction action */
Expand All @@ -20,7 +20,11 @@ function TaskAction({action}: TaskActionProps) {

return (
<View style={[styles.flex1, styles.flexRow, styles.alignItemsCenter, styles.breakWord, styles.preWrap]}>
{message.html ? <RenderHTML html={`<muted-text>${parser.replace(message.html)}</muted-text>`} /> : <Text style={[styles.chatItemMessage, styles.colorMuted]}>{message.text}</Text>}
{message.html ? (
<RenderHTML html={`<muted-text>${parser.replace(message.html)}</muted-text>`} />
) : (
<Text style={[styles.chatItemMessage, styles.colorMuted]}>{message.text}</Text>
)}
</View>
);
}
Expand Down

0 comments on commit 909ec73

Please sign in to comment.