-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
169 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/components/src/components/Icon/components/icons/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ import { | |
useNotificationController, | ||
} from "@/components/NotificationProvider"; | ||
import { Text } from "@/components/Text"; | ||
import { Notification } from "@/components/Notification"; | ||
import { Heading } from "@/components/Heading"; | ||
|
||
const meta: Meta<{ autoClose: boolean }> = { | ||
title: "Status/Notifications", | ||
|
@@ -20,22 +22,30 @@ const meta: Meta<{ autoClose: boolean }> = { | |
|
||
useEffect(() => { | ||
setTimeout(() => { | ||
notificationController.add({ | ||
autoClose: props.autoClose, | ||
heading: "Email address archived", | ||
text: "Your email address [email protected] has been archived.", | ||
onClick: () => alert("Notification clicked"), | ||
}); | ||
notificationController.add( | ||
<Notification | ||
autoClose={props.autoClose} | ||
onClick={() => alert("Notification clicked")} | ||
> | ||
<Heading>Email address archived</Heading> | ||
<Text> | ||
Your email address [email protected] has been archived. | ||
</Text> | ||
</Notification>, | ||
); | ||
}, 500); | ||
|
||
setTimeout(() => { | ||
notificationController.add({ | ||
autoClose: props.autoClose, | ||
heading: "No SSL certificate", | ||
text: "No SSL certificate could be issued for examples.de.", | ||
status: "warning", | ||
onClick: () => alert("Notification clicked"), | ||
}); | ||
notificationController.add( | ||
<Notification | ||
autoClose={props.autoClose} | ||
onClick={() => alert("Notification clicked")} | ||
status="warning" | ||
> | ||
<Heading>No SSL certificate</Heading> | ||
<Text>No SSL certificate could be issued for examples.de.</Text> | ||
</Notification>, | ||
); | ||
}, 2000); | ||
}, []); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
packages/docs/src/content/03-components/status/notification-group/examples/auto-close.tsx
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
packages/docs/src/content/03-components/status/notification-group/examples/default.tsx
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
packages/docs/src/content/03-components/status/notification-group/overview.mdx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.