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 * 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 { class WarningBox extends React.Component {
render() { render() {
return ( return (
<div className='alert alert-info'> <div className='alert alert-warning'>
<WarningIcon style={{ 'marginRight': '5px' }} /> <FontAwesomeIcon icon={faExclamationTriangle} style={{ 'marginRight': '5px' }} />
{this.props.schema.info} {this.props.schema.info}
</div> </div>
); );