From 4657ac043eee5b47f60a766fd1899c0704cce758 Mon Sep 17 00:00:00 2001 From: NJaku01 Date: Wed, 23 Dec 2020 16:05:22 +0100 Subject: [PATCH] possible solution for #197 --- ui/src/components/erc/Check/Check.js | 9 ++++++--- ui/src/helpers/theme.js | 6 ++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ui/src/components/erc/Check/Check.js b/ui/src/components/erc/Check/Check.js index 6c287c2d..5ba6acf7 100644 --- a/ui/src/components/erc/Check/Check.js +++ b/ui/src/components/erc/Check/Check.js @@ -8,17 +8,20 @@ import './check.css'; import config from '../../../helpers/config'; import Comparison from './Comparison/Comparison'; import Logs from './Logs/Logs'; +import { useTheme } from '@material-ui/core/styles'; + function Status(status) { + const theme = useTheme(); switch (status.status) { case 'success': - return Success + return Success case 'failure': if (status.checkStatus !== "failure") { - return Process Failed (check logs) + return Process Failed (check logs) } else { - return Reproduction Failed (click on "Show Result" for details) + return Reproduction Failed (click on "Show Result" for details) } case 'running': return Running diff --git a/ui/src/helpers/theme.js b/ui/src/helpers/theme.js index ff389fd1..93875e4f 100644 --- a/ui/src/helpers/theme.js +++ b/ui/src/helpers/theme.js @@ -10,6 +10,12 @@ const o2rTheme = createMuiTheme({ }, success: { main: '#008643' + }, + warn: { + main: '#CE5100' + }, + failure: { + main: '#860000' } }