From 73e58c37270047696daebf9595a455ecbb10877e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 24 Feb 2016 18:10:16 +0000 Subject: [PATCH] Globalize colours --- app/components/projects/ProjectItem.js | 4 +++- app/settings/styles.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/components/projects/ProjectItem.js b/app/components/projects/ProjectItem.js index f0af9fc..e5d49ec 100644 --- a/app/components/projects/ProjectItem.js +++ b/app/components/projects/ProjectItem.js @@ -74,7 +74,9 @@ export default class ProjectItem extends React.Component { console.log(this.props.userDetails); const project = this.props.project; const mostRecentBuild = this.state.recentBuild; - const statusColour = mostRecentBuild.failed ? '#ED5C5C' : '#42C88A'; + const statusColour = mostRecentBuild.failed ? + GlobalStyles.get('CIRCLE_TEST_FAIL') : + GlobalStyles.get('CIRCLE_TEST_PASS'); let username; if (this.props.userDetails && this.props.userDetails.login !== project.username) { username = project.username + '/'; diff --git a/app/settings/styles.js b/app/settings/styles.js index 3f3855f..d0f67e6 100644 --- a/app/settings/styles.js +++ b/app/settings/styles.js @@ -7,5 +7,7 @@ export default Map({ CIRCLE_BG: '#F5F5F5', CIRCLE_TEXT: '#212121', CIRCLE_ITEM_BG: '#fff', - CIRCLE_ITEM_BORDER: '#E5E5E5' + CIRCLE_ITEM_BORDER: '#E5E5E5', + CIRCLE_TEST_FAIL: '#ED5C5C', + CIRCLE_TEST_PASS: '#42C88A' });