mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-08-25 06:58:56 +02:00
28 lines
846 B
React
28 lines
846 B
React
|
import Inferno from 'inferno';
|
||
|
import Component from 'inferno-component';
|
||
|
|
||
|
export const EditLinguisticsForm = ({
|
||
|
editDictionaryModal,
|
||
|
partsOfSpeech,
|
||
|
}) => {
|
||
|
return (
|
||
|
<div className='form'>
|
||
|
<div className='field'>
|
||
|
<label className='label' htmlFor='dictionaryDescription'>Parts of Speech</label>
|
||
|
<div className='control'>
|
||
|
<textarea className='textarea' id='partsOfSpeech'
|
||
|
placeholder={ `Put each part of speech on a separate line` }
|
||
|
value={ partsOfSpeech }
|
||
|
onInput={ (event) => {
|
||
|
editDictionaryModal.setState({
|
||
|
partsOfSpeech: event.target.value,
|
||
|
hasChanged: event.target.value != editDictionaryModal.props.partsOfSpeech.join('\n'),
|
||
|
});
|
||
|
}}
|
||
|
/>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
);
|
||
|
}
|