From 504dfbd17dde8d0d889c6c913764256f0af44a21 Mon Sep 17 00:00:00 2001 From: Justin Kambic Date: Mon, 28 Sep 2020 13:40:46 -0400 Subject: [PATCH] Clean up console step component. --- .../public/components/monitor/synthetics/console_step.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/uptime/public/components/monitor/synthetics/console_step.tsx b/x-pack/plugins/uptime/public/components/monitor/synthetics/console_step.tsx index e02bb4e9ab3d2..9644ccf66e3f4 100644 --- a/x-pack/plugins/uptime/public/components/monitor/synthetics/console_step.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/synthetics/console_step.tsx @@ -14,11 +14,13 @@ interface ConsoleStepProps { } export const ConsoleStep: FC = ({ 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; }