|
|
@ -1,6 +1,6 @@
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import { inputTypes } from 'Helpers/Props';
|
|
|
|
import { inputTypes, kinds } from 'Helpers/Props';
|
|
|
|
import Button from 'Components/Link/Button';
|
|
|
|
import Button from 'Components/Link/Button';
|
|
|
|
import SpinnerErrorButton from 'Components/Link/SpinnerErrorButton';
|
|
|
|
import SpinnerErrorButton from 'Components/Link/SpinnerErrorButton';
|
|
|
|
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
|
|
|
|
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
|
|
|
@ -12,6 +12,7 @@ import Form from 'Components/Form/Form';
|
|
|
|
import FormGroup from 'Components/Form/FormGroup';
|
|
|
|
import FormGroup from 'Components/Form/FormGroup';
|
|
|
|
import FormLabel from 'Components/Form/FormLabel';
|
|
|
|
import FormLabel from 'Components/Form/FormLabel';
|
|
|
|
import FormInputGroup from 'Components/Form/FormInputGroup';
|
|
|
|
import FormInputGroup from 'Components/Form/FormInputGroup';
|
|
|
|
|
|
|
|
import styles from './EditCustomFormatModalContent.css';
|
|
|
|
|
|
|
|
|
|
|
|
class EditCustomFormatModalContent extends Component {
|
|
|
|
class EditCustomFormatModalContent extends Component {
|
|
|
|
|
|
|
|
|
|
|
@ -28,6 +29,7 @@ class EditCustomFormatModalContent extends Component {
|
|
|
|
onInputChange,
|
|
|
|
onInputChange,
|
|
|
|
onSavePress,
|
|
|
|
onSavePress,
|
|
|
|
onModalClose,
|
|
|
|
onModalClose,
|
|
|
|
|
|
|
|
onDeleteCustomFormatPress,
|
|
|
|
...otherProps
|
|
|
|
...otherProps
|
|
|
|
} = this.props;
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
|
|
|
@ -92,6 +94,17 @@ class EditCustomFormatModalContent extends Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ModalBody>
|
|
|
|
</ModalBody>
|
|
|
|
<ModalFooter>
|
|
|
|
<ModalFooter>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id &&
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
|
|
|
className={styles.deleteButton}
|
|
|
|
|
|
|
|
kind={kinds.DANGER}
|
|
|
|
|
|
|
|
onPress={onDeleteCustomFormatPress}
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
Delete
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
onPress={onModalClose}
|
|
|
|
onPress={onModalClose}
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -120,7 +133,8 @@ EditCustomFormatModalContent.propTypes = {
|
|
|
|
onInputChange: PropTypes.func.isRequired,
|
|
|
|
onInputChange: PropTypes.func.isRequired,
|
|
|
|
onSavePress: PropTypes.func.isRequired,
|
|
|
|
onSavePress: PropTypes.func.isRequired,
|
|
|
|
onContentHeightChange: PropTypes.func.isRequired,
|
|
|
|
onContentHeightChange: PropTypes.func.isRequired,
|
|
|
|
onModalClose: PropTypes.func.isRequired
|
|
|
|
onModalClose: PropTypes.func.isRequired,
|
|
|
|
|
|
|
|
onDeleteCustomFormatPress: PropTypes.func
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export default EditCustomFormatModalContent;
|
|
|
|
export default EditCustomFormatModalContent;
|
|
|
|