rename prop
This commit is contained in:
parent
f93841eb8c
commit
3aa8756d81
@ -185,7 +185,7 @@ class PokemonApp extends React.Component<IConnectedPokemonAppProps, IState> {
|
||||
{ leaguePokemon !== null &&
|
||||
<PokemonDisplay
|
||||
leaguePokemon={ leaguePokemon }
|
||||
temporaryNavigationIsActive={ isOverlayShown }
|
||||
isHighlighted={ isOverlayShown }
|
||||
/>
|
||||
}
|
||||
{ widgets.pvp && leaguePokemon !== null &&
|
||||
|
||||
@ -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
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user