Skip to content

Commit

Permalink
Clean up console step component.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Sep 28, 2020
1 parent 819b07e commit 504dfbd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ interface ConsoleStepProps {
}

export const ConsoleStep: FC<ConsoleStepProps> = ({ step }) => {
const c = useContext(UptimeThemeContext);
const {
colors: { danger },
} = useContext(UptimeThemeContext);

let typeColor: string | null;
if (step.synthetics?.type === 'stderr') {
typeColor = c.colors.danger;
typeColor = danger;
} else {
typeColor = null;
}
Expand Down

0 comments on commit 504dfbd

Please sign in to comment.