Adjust limits for performance

This commit is contained in:
Anthony Mineo 2020-04-14 18:22:26 -04:00
parent 56878c47d6
commit 2cf1a508d5
5 changed files with 18 additions and 18 deletions

View file

@ -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">

View file

@ -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">

View file

@ -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>