Skip to content

Commit 9244cf0

Browse files
authored
fix(AlertGroupDemo): crashed when adding default alerts (#9826)
1 parent ddc87a7 commit 9244cf0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-core/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrap
3939
interface NotificationProps {
4040
title: string;
4141
srTitle: string;
42-
variant: 'default' | 'success' | 'danger' | 'warning' | 'info';
42+
variant: 'custom' | 'success' | 'danger' | 'warning' | 'info';
4343
key: React.Key;
4444
timestamp: string;
4545
description: string;
@@ -345,8 +345,8 @@ export const AlertGroupToastWithNotificationDrawer: React.FunctionComponent = ()
345345
<Button variant="secondary" onClick={() => addNewNotification('warning')} style={alertButtonStyle}>
346346
Add toast warning alert
347347
</Button>
348-
<Button variant="secondary" onClick={() => addNewNotification('default')} style={alertButtonStyle}>
349-
Add toast default alert
348+
<Button variant="secondary" onClick={() => addNewNotification('custom')} style={alertButtonStyle}>
349+
Add toast custom alert
350350
</Button>
351351
</PageSection>
352352

0 commit comments

Comments
 (0)