cc: Add new `InfoField` component

This commit is contained in:
Shreya 2021-07-09 19:53:46 +05:30
parent 4320d3e08c
commit 844399b608
1 changed files with 18 additions and 0 deletions

View File

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