From f289d91d581dd0da5c3d37a4e530ab34288f755f Mon Sep 17 00:00:00 2001 From: Jeff Colombo Date: Sun, 3 Feb 2019 21:37:47 -0500 Subject: [PATCH] style rank section --- .../PokemonExplorer/PokemonExplorer.tsx | 47 +++++++++++++++++-- .../styles/PokemonExplorer.scss | 29 ++++++++---- .../styles/PokemonExplorer.scss.d.ts | 3 +- .../PokemonSelectList/PokemonSelectList.tsx | 2 +- 4 files changed, 65 insertions(+), 16 deletions(-) diff --git a/src/ts/app/components/PokemonExplorer/PokemonExplorer.tsx b/src/ts/app/components/PokemonExplorer/PokemonExplorer.tsx index 0728aa1..0e3a3d4 100644 --- a/src/ts/app/components/PokemonExplorer/PokemonExplorer.tsx +++ b/src/ts/app/components/PokemonExplorer/PokemonExplorer.tsx @@ -353,11 +353,48 @@ export class PokemonExplorer extends React.Component
-
{ rankedGrade } Rank
-
CP { rankedCp }
-
{ rankedHp } HP
-
{ rankedAtk } ATK
-
{ rankedDef } DEF
+
Rank
+
+
+

{ rankedGrade }

Rank
+
CP { rankedCp }
+
+
+
+ HP  { rankedHp < 100 && String.fromCharCode(160) }{ rankedHp } + + { leaguePokemon.statsRank.staminaRank }% + +
+
+ ATK { rankedAtk < 100 && String.fromCharCode(160) }{ rankedAtk } + + { leaguePokemon.statsRank.attackRank }% + +
+
+ DEF { rankedDef < 100 && String.fromCharCode(160) }{ rankedDef } + + { leaguePokemon.statsRank.defenseRank }% + +
+
+
{ this.props.filterTerm !== '' &&