1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-02 06:07:06 +01:00
metamask-extension/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-warning/confirm-page-container-warning.component.js
Nidhi Kumari 6535e34943
Replaced all fa-icon-circle with INFO icon (#17539)
* replace all fa-icon-circle with INFO icon

* updated classnames

* updated classnames

* updated snapshots

* updated colors

* resolved errors

* fixed relative import

* fixed lint errors

* added story for alerts tab

* update snapshot

* updated info-circle

* updated enum for iconName

* removed classnames

* updated iconName in settings

* fixed lint errors and snapshots
2023-05-09 23:04:58 +05:30

26 lines
705 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import { Icon, IconName } from '../../../../component-library';
import { IconColor } from '../../../../../helpers/constants/design-system';
const ConfirmPageContainerWarning = (props) => {
return (
<div className="confirm-page-container-warning">
<Icon
name={IconName.Info}
color={IconColor.warningDefault}
className="confirm-page-container-warning__icon"
/>
<div className="confirm-page-container-warning__warning">
{props.warning}
</div>
</div>
);
};
ConfirmPageContainerWarning.propTypes = {
warning: PropTypes.string,
};
export default ConfirmPageContainerWarning;