Skip to content

Commit

Permalink
fix(AlertGroupDemo): crashed when adding default alerts (#9826)
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga committed Dec 6, 2023
1 parent ddc87a7 commit 9244cf0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrap
interface NotificationProps {
title: string;
srTitle: string;
variant: 'default' | 'success' | 'danger' | 'warning' | 'info';
variant: 'custom' | 'success' | 'danger' | 'warning' | 'info';
key: React.Key;
timestamp: string;
description: string;
Expand Down Expand Up @@ -345,8 +345,8 @@ export const AlertGroupToastWithNotificationDrawer: React.FunctionComponent = ()
<Button variant="secondary" onClick={() => addNewNotification('warning')} style={alertButtonStyle}>
Add toast warning alert
</Button>
<Button variant="secondary" onClick={() => addNewNotification('default')} style={alertButtonStyle}>
Add toast default alert
<Button variant="secondary" onClick={() => addNewNotification('custom')} style={alertButtonStyle}>
Add toast custom alert
</Button>
</PageSection>

Expand Down

0 comments on commit 9244cf0

Please sign in to comment.