UI: Use colors from existing warning theme

This commit is contained in:
Kekoa Kaaikala 2022-09-28 19:21:09 +00:00
parent 2f7f4fef9c
commit ab919f6d57
1 changed files with 4 additions and 3 deletions

View File

@ -1,12 +1,13 @@
import * as React from 'react';
import WarningIcon from '../ui-components/WarningIcon';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons/faExclamationTriangle';
class WarningBox extends React.Component {
render() {
return (
<div className='alert alert-info'>
<WarningIcon style={{ 'marginRight': '5px' }} />
<div className='alert alert-warning'>
<FontAwesomeIcon icon={faExclamationTriangle} style={{ 'marginRight': '5px' }} />
{this.props.schema.info}
</div>
);