Globalize colours

This commit is contained in:
Jake Howard 2016-02-24 18:10:16 +00:00
parent e7b20542d0
commit 73e58c3727
2 changed files with 6 additions and 2 deletions

View file

@ -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 + '/';

View file

@ -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'
});