1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 04:20:53 +01:00
metamask-extension/ui/components/component-library/banner-alert/banner-alert.constants.js
Pritam Dhara 5b5ca4599e
Replaces SEVERITIES const with Severity enum in BannerAlert (#20200)
* Replaces SEVERITIES const with Severity enum in BannerAlert

* Replaced SEVERITIES with Severity in banner-alert.constants.js

* Used BANNER_ALERT_SEVERITIES instead of SEVERITIES in banner-alert.stories.js

* Updated README for usage of Severity instead of SEVERITIES

* Updates to stories and docs link

---------

Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-08-01 14:41:30 -07:00

9 lines
222 B
JavaScript

import { Severity } from '../../../helpers/constants/design-system';
export const BANNER_ALERT_SEVERITIES = {
DANGER: Severity.Danger,
INFO: Severity.Info,
SUCCESS: Severity.Success,
WARNING: Severity.Warning,
};