@@ -16,6 +16,7 @@ import { MainSkillName } from '../../util/MainSkill';
16
16
export interface PokemonOption {
17
17
id : number ;
18
18
idForm : number ;
19
+ form ?: string ;
19
20
name : string ;
20
21
localName : string ;
21
22
sleepType : SleepType ;
@@ -42,6 +43,7 @@ const PokemonTextField = React.memo(({value, fixMode, onChange}: {
42
43
. map ( ( pokemon ) => ( {
43
44
id : pokemon . id ,
44
45
idForm : new PokemonIv ( pokemon . name ) . idForm ,
46
+ form : pokemon . form ,
45
47
name : pokemon . name ,
46
48
localName : t ( `pokemons.${ pokemon . name } ` ) ,
47
49
sleepType : pokemon . sleepType ,
@@ -76,7 +78,7 @@ const PokemonTextField = React.memo(({value, fixMode, onChange}: {
76
78
77
79
return ( < div >
78
80
{ fixMode ? < > { selectedOption . localName } </ > :
79
- < TextLikeButton onClick = { onInputClick } style = { { width : '8rem ' , fontSize : '0.9rem' } }
81
+ < TextLikeButton onClick = { onInputClick } style = { { width : '10.2rem ' , fontSize : '0.9rem' } }
80
82
className = { open ? 'focused' : '' } >
81
83
{ selectedOption . localName }
82
84
</ TextLikeButton > }
@@ -116,7 +118,9 @@ const EvolveButton = React.memo(({selectedOption, onChange}: {
116
118
// setup menu item
117
119
const evolveMenuItems = [ ] ;
118
120
const pokemonsInEvoLine = pokemons
119
- . filter ( x => x . ancestor === selectedOption . ancestor )
121
+ . filter ( x => x . ancestor === selectedOption . ancestor &&
122
+ x . form === selectedOption . form
123
+ )
120
124
. sort ( ( a , b ) => a . id === selectedOption . ancestor ? - 1 : a . id - b . id ) ;
121
125
for ( const p of pokemonsInEvoLine ) {
122
126
evolveMenuItems . push ( < MenuItem key = { p . id } value = { p . name }
0 commit comments