edit tags section

This commit is contained in:
gingervitis
2021-01-01 18:23:23 -08:00
committed by Gabe Kangas
parent 624ab72eb3
commit c93aefa05d
4 changed files with 191 additions and 35 deletions

View File

@@ -22,7 +22,7 @@ import { FormItemProps } from 'antd/es/form';
import { InfoCircleOutlined } from '@ant-design/icons';
import { TEXTFIELD_DEFAULTS, TEXT_MAXLENGTH } from './defaults';
import { TEXTFIELD_DEFAULTS, TEXT_MAXLENGTH, RESET_TIMEOUT } from './constants';
import { TextFieldProps } from '../../../types/config-section';
import { fetchData, SERVER_CONFIG_UPDATE_URL } from '../../../utils/apis';
@@ -84,7 +84,7 @@ export default function TextField(props: TextFieldProps) {
setSubmitStatus('error');
setSubmitStatusMessage(`There was an error: ${result.message}`);
}
resetTimer = setTimeout(resetStates, 3000);
resetTimer = setTimeout(resetStates, RESET_TIMEOUT);
};
const handleChange = e => {
@@ -139,7 +139,7 @@ export default function TextField(props: TextFieldProps) {
<Form.Item
label={label}
name={fieldName}
// hasFeedback
hasFeedback
validateStatus={submitStatus}
help={submitStatusMessage}
>