mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-05-10 12:11:16 +02:00
Get parts of speech for WordForm from DictionaryData instead of props
This commit is contained in:
parent
1eb60a9b44
commit
f5a558e68e
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,6 @@ export const MainDisplay = ({ dictionaryInfo, wordsToDisplay, updateDisplay, upd
|
||||||
<LeftColumn>
|
<LeftColumn>
|
||||||
<WordForm
|
<WordForm
|
||||||
updateDisplay={ () => updateDisplay() }
|
updateDisplay={ () => updateDisplay() }
|
||||||
partsOfSpeech={ dictionaryInfo.partsOfSpeech }
|
|
||||||
/>
|
/>
|
||||||
</LeftColumn>
|
</LeftColumn>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import Inferno from 'inferno';
|
import Inferno from 'inferno';
|
||||||
import Component from 'inferno-component';
|
import Component from 'inferno-component';
|
||||||
|
|
||||||
|
import dictionaryData from '../../managers/DictionaryData';
|
||||||
import { IPAField } from './IPAField';
|
import { IPAField } from './IPAField';
|
||||||
import { Word } from '../../managers/Word';
|
import { Word } from '../../managers/Word';
|
||||||
|
|
||||||
|
@ -119,7 +120,7 @@ export class WordForm extends Component {
|
||||||
this.setState({ wordPartOfSpeech: event.target.value });
|
this.setState({ wordPartOfSpeech: event.target.value });
|
||||||
}}>
|
}}>
|
||||||
<option value=''></option>
|
<option value=''></option>
|
||||||
{this.props.partsOfSpeech.map((partOfSpeech) => {
|
{dictionaryData.partsOfSpeech.map((partOfSpeech) => {
|
||||||
return (
|
return (
|
||||||
<option value={ partOfSpeech }>
|
<option value={ partOfSpeech }>
|
||||||
{ partOfSpeech }
|
{ partOfSpeech }
|
||||||
|
|
Loading…
Add table
Reference in a new issue