Implemented Capture The Flag
This commit is contained in:
@@ -21,10 +21,16 @@ class BadgeText extends React.Component {
|
||||
|
||||
let style = this.props.centered ? centerStyle : leftStyle;
|
||||
|
||||
//Capture The Flag forces your name to be yellow
|
||||
let colorOverride = {};
|
||||
if (this.props.name === 'Capture The Flag') {
|
||||
colorOverride.color = 'yellow';
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={this.props.className} style={{...style, paddingBottom: '0.5em'}}>
|
||||
<Badge name={this.props.name} filename={this.props.filename} size={this.props.size} />
|
||||
<p style={{paddingBottom: 0, ...this.props.style}}>{this.props.children}</p>
|
||||
<p className='truncate' style={{paddingBottom: 0, ...this.props.style, ...colorOverride}}>{this.props.children}</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user