mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-01-20 01:34:47 +00:00
cleanup
This commit is contained in:
parent
982d1c429c
commit
229ce10466
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react'
|
||||
|
||||
const returnTotalGames = (player) => {
|
||||
const returnTotalSumGames = (player) => {
|
||||
let sum = Number(player.ctf) +
|
||||
Number(player.dm) +
|
||||
Number(player.lak) +
|
||||
|
|
@ -12,7 +12,7 @@ const GameTypesPlayedBoxes = (props) => {
|
|||
return (
|
||||
<div>
|
||||
<h3 className="text-md leading-6 font-medium text-gray-900">
|
||||
Games Played {returnTotalGames(props)}
|
||||
Games Played {returnTotalSumGames(props)}
|
||||
</h3>
|
||||
<div className="mt-5 grid grid-cols-1 gap-5 sm:grid-cols-4">
|
||||
<div className="bg-white overflow-hidden shadow rounded-lg">
|
||||
|
|
|
|||
|
|
@ -17,8 +17,7 @@ export default function Player(props) {
|
|||
/>
|
||||
|
||||
<div className="bg-white shadow overflow-hidden sm:rounded-md">
|
||||
<div>{JSON.stringify(props.playerData.player)}</div>
|
||||
<div> {JSON.stringify(props.playerData.stats)}</div>
|
||||
<div className="py-10 px-10"><code> {JSON.stringify(props.playerData.stats)}</code></div>
|
||||
</div>
|
||||
</Layout>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue