Get parts of speech for WordForm from DictionaryData instead of props

This commit is contained in:
Robbie Antenesse 2017-11-14 17:04:36 -07:00
parent 1eb60a9b44
commit f5a558e68e
2 changed files with 2 additions and 2 deletions
src/components

View File

@ -16,7 +16,6 @@ export const MainDisplay = ({ dictionaryInfo, wordsToDisplay, updateDisplay, upd
<LeftColumn>
<WordForm
updateDisplay={ () => updateDisplay() }
partsOfSpeech={ dictionaryInfo.partsOfSpeech }
/>
</LeftColumn>

View File

@ -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 }