mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-04-23 12:35:21 +00:00
Adjust limits for performance
This commit is contained in:
parent
56878c47d6
commit
2cf1a508d5
5 changed files with 18 additions and 18 deletions
|
|
@ -86,7 +86,7 @@ export class TwoLevelPieChart extends PureComponent {
|
|||
|
||||
const PlayerRow = (player, index) => {
|
||||
// dont show scoreless players
|
||||
if (Number(player.stats.score) <= 0){return}
|
||||
//if (Number(player.stats.score) <= 0){return}
|
||||
|
||||
return <div className="flex flex-col rounded-lg shadow-lg overflow-hidden" key={index}>
|
||||
<div className="bg-white shadow overflow-hidden sm:rounded-lg">
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@ import Layout from '@/Shared/Layout'
|
|||
|
||||
const GameRow = (game, index) => {
|
||||
|
||||
// TODO: move this into controller for faster render
|
||||
if (Number(game.stats.score) === 0){return}
|
||||
|
||||
return <li key={index}>
|
||||
<InertiaLink href={`/game/${game.game_id}`} className="block hover:bg-gray-50 focus:outline-none focus:bg-gray-50 transition duration-150 ease-in-out">
|
||||
<div className="flex items-center px-4 py-4 sm:px-6">
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ export default function Player(props) {
|
|||
{ props.playerData.stats.map((player, index) => GameCard(player, index)) }
|
||||
</div>
|
||||
</div>
|
||||
{/*
|
||||
{/*
|
||||
|
||||
<div className="bg-white shadow overflow-hidden sm:rounded-md">
|
||||
<div className="py-10 px-10"><code> {JSON.stringify(props.playerData.stats)}</code></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue