rename prop

This commit is contained in:
Jeff Colombo 2019-03-04 23:39:23 -05:00
parent f93841eb8c
commit 3aa8756d81
2 changed files with 4 additions and 4 deletions

View File

@ -185,7 +185,7 @@ class PokemonApp extends React.Component<IConnectedPokemonAppProps, IState> {
{ leaguePokemon !== null && { leaguePokemon !== null &&
<PokemonDisplay <PokemonDisplay
leaguePokemon={ leaguePokemon } leaguePokemon={ leaguePokemon }
temporaryNavigationIsActive={ isOverlayShown } isHighlighted={ isOverlayShown }
/> />
} }
{ widgets.pvp && leaguePokemon !== null && { widgets.pvp && leaguePokemon !== null &&

View File

@ -15,14 +15,14 @@ import * as styles from 'app/styles/PokemonDisplay.scss';
export interface IPokemonDisplay { export interface IPokemonDisplay {
leaguePokemon : IPokemon; leaguePokemon : IPokemon;
temporaryNavigationIsActive : boolean; isHighlighted : boolean;
} }
export class PokemonDisplay extends React.Component<IPokemonDisplay> { export class PokemonDisplay extends React.Component<IPokemonDisplay> {
public render() { public render() {
const { const {
leaguePokemon, leaguePokemon,
temporaryNavigationIsActive isHighlighted
} = this.props; } = this.props;
const dex = formatDexNumber(leaguePokemon.dex); const dex = formatDexNumber(leaguePokemon.dex);
@ -30,7 +30,7 @@ export class PokemonDisplay extends React.Component<IPokemonDisplay> {
const pokemonInfoLeftColumnCss = classNames( const pokemonInfoLeftColumnCss = classNames(
styles.pokemonInfoLeftColumn, styles.pokemonInfoLeftColumn,
{ {
[styles.highlight]: temporaryNavigationIsActive [styles.highlight]: isHighlighted
} }
); );