cc: Remove unused `FieldWithInfo` component

This commit is contained in:
Shreya 2021-07-09 20:20:12 +05:30
parent 677f995bb3
commit 67293b37ef
2 changed files with 0 additions and 21 deletions

View File

@ -1,20 +0,0 @@
import ObjectField from 'react-jsonschema-form-bs4/lib/components/fields/ArrayField';
import * as React from 'react';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
import {faInfoCircle} from '@fortawesome/free-solid-svg-icons/faInfoCircle';
class FieldWithInfo extends React.Component {
render() {
return (
<>
<div className='alert alert-info'>
<FontAwesomeIcon icon={faInfoCircle} style={{'marginRight': '5px'}}/>
{this.props.schema.info}
</div>
<ObjectField {...this.props} />
</>);
}
}
export default FieldWithInfo;

View File

@ -1,7 +1,6 @@
import AdvancedMultiSelect from '../ui-components/AdvancedMultiSelect'; import AdvancedMultiSelect from '../ui-components/AdvancedMultiSelect';
import PbaInput from './PbaInput'; import PbaInput from './PbaInput';
import {API_PBA_LINUX, API_PBA_WINDOWS} from '../pages/ConfigurePage'; import {API_PBA_LINUX, API_PBA_WINDOWS} from '../pages/ConfigurePage';
import FieldWithInfo from './FieldWithInfo';
import InfoField from './InfoField'; import InfoField from './InfoField';
export default function UiSchema(props) { export default function UiSchema(props) {