rename prop
This commit is contained in:
parent
f93841eb8c
commit
3aa8756d81
@ -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 &&
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user