mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-01-19 17:34:43 +00:00
cleanup
This commit is contained in:
parent
982d1c429c
commit
229ce10466
|
|
@ -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">
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue