1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-08-24 22:48:57 +02:00
Lexiconga/src/components/management/EditDictionaryModal/EditLinguisticsForm.jsx

27 lines
846 B
JavaScript

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>
);
}