Skip to content

Commit

Permalink
Merge pull request #23912 from DanutGavrus/fix/23304-inconsistent-tas…
Browse files Browse the repository at this point in the history
…ks-color
  • Loading branch information
dangrous authored Aug 1, 2023
2 parents 48d1b6b + 1361eab commit de4e13a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
15 changes: 6 additions & 9 deletions src/components/ReportActionItem/TaskAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,25 @@ const defaultProps = {
function TaskAction(props) {
const taskReportName = props.taskReport.reportName || '';

let messageLinkText = '';
let taskStatusText = '';
switch (props.actionName) {
case CONST.REPORT.ACTIONS.TYPE.TASKCOMPLETED:
messageLinkText = props.translate('task.messages.completed');
taskStatusText = props.translate('task.messages.completed');
break;
case CONST.REPORT.ACTIONS.TYPE.TASKCANCELLED:
messageLinkText = props.translate('task.messages.canceled');
taskStatusText = props.translate('task.messages.canceled');
break;
case CONST.REPORT.ACTIONS.TYPE.TASKREOPENED:
messageLinkText = props.translate('task.messages.reopened');
taskStatusText = props.translate('task.messages.reopened');
break;
default:
messageLinkText = props.translate('task.task');
taskStatusText = props.translate('task.task');
}

return (
<>
<View style={[styles.flex1, styles.flexRow, styles.alignItemsCenter]}>
<Text>
<Text style={styles.chatItemMessageLink}>{messageLinkText}</Text>
<Text style={[styles.chatItemMessage]}>{` ${taskReportName}`}</Text>
</Text>
<Text style={[styles.chatItemMessage, styles.colorMuted]}>{`${taskStatusText} ${taskReportName}`}</Text>
</View>
</>
);
Expand Down
7 changes: 0 additions & 7 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -1553,13 +1553,6 @@ const styles = {
...wordBreak.breakWord,
},

chatItemMessageLink: {
color: themeColors.link,
fontSize: variables.fontSizeNormal,
fontFamily: fontFamily.EXP_NEUE,
lineHeight: variables.lineHeightXLarge,
},

chatItemComposeWithFirstRow: {
minHeight: 90,
},
Expand Down

0 comments on commit de4e13a

Please sign in to comment.