| 12345678910111213141516171819202122232425262728 |
- import { useState } from 'react'
- import { Button } from 'react-bootstrap'
- import { useTranslation } from 'react-i18next'
- import DictionaryModal from '../../../dictionary/components/dictionary-modal'
- export default function SettingsDictionary() {
- const { t } = useTranslation()
- const [showModal, setShowModal] = useState(false)
- return (
- <div className="form-group left-menu-setting">
- <label htmlFor="dictionary">{t('dictionary')}</label>
- <Button
- className="btn-secondary"
- bsSize="xs"
- bsStyle={null}
- onClick={() => setShowModal(true)}
- >
- {t('edit')}
- </Button>
- <DictionaryModal
- show={showModal}
- handleHide={() => setShowModal(false)}
- />
- </div>
- )
- }
|