This commit is contained in:
Anthony Mineo 2020-03-30 16:34:31 -04:00
parent 982d1c429c
commit 229ce10466
2 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,6 @@
import React from 'react' import React from 'react'
const returnTotalGames = (player) => { const returnTotalSumGames = (player) => {
let sum = Number(player.ctf) + let sum = Number(player.ctf) +
Number(player.dm) + Number(player.dm) +
Number(player.lak) + Number(player.lak) +
@ -12,7 +12,7 @@ const GameTypesPlayedBoxes = (props) => {
return ( return (
<div> <div>
<h3 className="text-md leading-6 font-medium text-gray-900"> <h3 className="text-md leading-6 font-medium text-gray-900">
Games Played {returnTotalGames(props)} Games Played {returnTotalSumGames(props)}
</h3> </h3>
<div className="mt-5 grid grid-cols-1 gap-5 sm:grid-cols-4"> <div className="mt-5 grid grid-cols-1 gap-5 sm:grid-cols-4">
<div className="bg-white overflow-hidden shadow rounded-lg"> <div className="bg-white overflow-hidden shadow rounded-lg">

View file

@ -17,8 +17,7 @@ export default function Player(props) {
/> />
<div className="bg-white shadow overflow-hidden sm:rounded-md"> <div className="bg-white shadow overflow-hidden sm:rounded-md">
<div>{JSON.stringify(props.playerData.player)}</div> <div className="py-10 px-10"><code> {JSON.stringify(props.playerData.stats)}</code></div>
<div> {JSON.stringify(props.playerData.stats)}</div>
</div> </div>
</Layout> </Layout>
) )