|
@@ -16,7 +16,6 @@
|
|
|
import React, { useState } from 'react';
|
|
import React, { useState } from 'react';
|
|
|
import Modal from 'cuix/dist/components/Modal';
|
|
import Modal from 'cuix/dist/components/Modal';
|
|
|
import { Input } from 'antd';
|
|
import { Input } from 'antd';
|
|
|
-import { i18nReact } from '../../../utils/i18nReact';
|
|
|
|
|
|
|
|
|
|
import './InputModal.scss';
|
|
import './InputModal.scss';
|
|
|
|
|
|
|
@@ -44,14 +43,13 @@ const InputModal: React.FC<InputModalProps> = ({
|
|
|
showModal,
|
|
showModal,
|
|
|
title
|
|
title
|
|
|
}): JSX.Element => {
|
|
}): JSX.Element => {
|
|
|
- const { t } = i18nReact.useTranslation();
|
|
|
|
|
const [textInput, setTextInput] = useState<string>('');
|
|
const [textInput, setTextInput] = useState<string>('');
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<Modal
|
|
<Modal
|
|
|
- cancelText={t(cancelText)}
|
|
|
|
|
|
|
+ cancelText={cancelText}
|
|
|
className="hue-input-modal"
|
|
className="hue-input-modal"
|
|
|
- okText={t(okText)}
|
|
|
|
|
|
|
+ okText={okText}
|
|
|
onCancel={() => {
|
|
onCancel={() => {
|
|
|
setTextInput('');
|
|
setTextInput('');
|
|
|
onClose();
|
|
onClose();
|
|
@@ -62,9 +60,9 @@ const InputModal: React.FC<InputModalProps> = ({
|
|
|
onClose();
|
|
onClose();
|
|
|
}}
|
|
}}
|
|
|
open={showModal}
|
|
open={showModal}
|
|
|
- title={t(title)}
|
|
|
|
|
|
|
+ title={title}
|
|
|
>
|
|
>
|
|
|
- <div className="hue-input-modal__input-label">{t(inputLabel)}</div>
|
|
|
|
|
|
|
+ <div className="hue-input-modal__input-label">{inputLabel}</div>
|
|
|
<Input
|
|
<Input
|
|
|
className="hue-input-modal__input"
|
|
className="hue-input-modal__input"
|
|
|
value={textInput}
|
|
value={textInput}
|