Get parts of speech for WordForm from DictionaryData instead of props
This commit is contained in:
parent
1eb60a9b44
commit
f5a558e68e
src/components
|
@ -16,7 +16,6 @@ export const MainDisplay = ({ dictionaryInfo, wordsToDisplay, updateDisplay, upd
|
|||
<LeftColumn>
|
||||
<WordForm
|
||||
updateDisplay={ () => updateDisplay() }
|
||||
partsOfSpeech={ dictionaryInfo.partsOfSpeech }
|
||||
/>
|
||||
</LeftColumn>
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import Inferno from 'inferno';
|
||||
import Component from 'inferno-component';
|
||||
|
||||
import dictionaryData from '../../managers/DictionaryData';
|
||||
import { IPAField } from './IPAField';
|
||||
import { Word } from '../../managers/Word';
|
||||
|
||||
|
@ -119,7 +120,7 @@ export class WordForm extends Component {
|
|||
this.setState({ wordPartOfSpeech: event.target.value });
|
||||
}}>
|
||||
<option value=''></option>
|
||||
{this.props.partsOfSpeech.map((partOfSpeech) => {
|
||||
{dictionaryData.partsOfSpeech.map((partOfSpeech) => {
|
||||
return (
|
||||
<option value={ partOfSpeech }>
|
||||
{ partOfSpeech }
|
||||
|
|
Loading…
Reference in New Issue