Skip to content

Commit

Permalink
Use warning instead of error for cancelled mission
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Dec 16, 2024
1 parent 885e694 commit fb79181
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ const MissionStatusIcon = ({ status }: StatusProps) => {
case MissionStatus.Ongoing: {
return <StyledIcon name={Icons.Ongoing} style={{ color: tokens.colors.text.static_icons__secondary.hex }} />
}
case MissionStatus.Failed: {
return <StyledIcon name={Icons.Failed} style={{ color: tokens.colors.interactive.danger__resting.hex }} />
}
case MissionStatus.Successful: {
return (
<StyledIcon name={Icons.Successful} style={{ color: tokens.colors.interactive.success__resting.hex }} />
)
}
case MissionStatus.PartiallySuccessful: {
case MissionStatus.PartiallySuccessful:
case MissionStatus.Cancelled: {
return <StyledIcon name={Icons.Warning} style={{ color: tokens.colors.interactive.warning__resting.hex }} />
}
case MissionStatus.Failed: {
return <StyledIcon name={Icons.Failed} style={{ color: tokens.colors.interactive.danger__resting.hex }} />
}
}
return <StyledIcon name={Icons.Failed} style={{ color: tokens.colors.interactive.danger__resting.hex }} />
}
Expand Down

0 comments on commit fb79181

Please sign in to comment.