Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
,
{longMessage}
,
{longMessage}
,
{longMessage}
,
],
},
{
id: 'dismissable',
title: 'Dismissable',
blurb: [
Banner alerts can be configured to include a close icon so that the user
can dismiss them.
,
],
examples: [
type: ALERT_TYPES.NEUTRAL,
},
{
show: true,
message: 'Successful alert with dismiss option.',
type: ALERT_TYPES.SUCCESS,
},
{
show: true,
message: 'Warn alert with dismiss option.',
type: ALERT_TYPES.WARN,
},
{
show: true,
message: 'Error alert with dismiss option.',
type: ALERT_TYPES.ERROR,
},
];
this.state = {
bannerAlerts: JSON.parse(JSON.stringify(this.bannerAlerts)),
dirty: false,
};
}