Having some fun

This commit is contained in:
2019-06-08 03:30:40 +10:00
parent 824bee8e43
commit 94dcc297da
3 changed files with 48 additions and 2 deletions
+7 -1
View File
@@ -2,6 +2,8 @@ import React from 'react';
import { withRouter, Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import ProgressiveRainbowText from './progressive_rainbow_text.jsx';
class PagedLadder extends React.Component {
constructor(props) {
super(props);
@@ -27,7 +29,11 @@ class PagedLadder extends React.Component {
<hr />
<div className='break' />
<div className={'row'}>
<p className={'col centered truncate'}><Link to={`/profile?username=${this.state[key].username}`}>{this.state[key].username}</Link></p>
{
this.state[key].username === 'Ratstail91' ?
<Link to={`/profile?username=${this.state[key].username}`} className={'col centered truncate'}><ProgressiveRainbowText>{this.state[key].username}</ProgressiveRainbowText></Link> :
<Link to={`/profile?username=${this.state[key].username}`} className={'col centered truncate'}><p>{this.state[key].username}</p></Link>
}
<p className={'col centered truncate'}><span className='mobile show' style={{whiteSpace: 'pre'}}>Soldiers: </span>{this.state[key].soldiers}</p>
<p className={'col centered truncate'}><span className='mobile show' style={{whiteSpace: 'pre'}}>Recruits: </span>{this.state[key].recruits}</p>
<p className={'col centered truncate'}><span className='mobile show' style={{whiteSpace: 'pre'}}>Gold: </span>{this.state[key].gold}</p>