Skip to content

Commit

Permalink
Added tech fouls and comment support in matches
Browse files Browse the repository at this point in the history
  • Loading branch information
Stav Eyal committed Mar 5, 2019
1 parent 4aea0fd commit 98e5f72
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/components/Record.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
GiJoystick as Controller,
GiSailboat as Sailboat,
GiPlainCircle as Cargo,
GiCompactDisc as Panel
GiCompactDisc as Panel,
GiStairsGoal as Stairs
} from 'react-icons/gi'
import { IoIosRocket as Rocket } from 'react-icons/io'

Expand Down Expand Up @@ -92,6 +93,18 @@ class Record extends React.Component {

<p> <Panel /> Panels: </p>
<Installations match={match} gameObject='panels' />

<p> <Stairs /> Climb: {match.climb} </p>

<p style={{ color: match.techFouls ? '#e74c3c' : '#2ecc71' }}>
Tech fouls: {match.techFouls ? 'true' : 'false'} </p>

{
match.comment === ''
? <span />
: <p> Comments: {match.comment} </p>
}

</div>
)
}
Expand Down

0 comments on commit 98e5f72

Please sign in to comment.