forked from p34709852/monkey
cc: Remove unused `FieldWithInfo` component
This commit is contained in:
parent
677f995bb3
commit
67293b37ef
|
@ -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;
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue