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 &&
<PokemonDisplay
leaguePokemon={ leaguePokemon }
temporaryNavigationIsActive={ isOverlayShown }
isHighlighted={ isOverlayShown }
/>
}
{ widgets.pvp && leaguePokemon !== null &&

View File

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