-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Merge pull request #455 from UniversalDataTool/notification
implement notificaiton
- Loading branch information
Showing
2 changed files
with
134 additions
and
7 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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// @flow | ||
|
||
import React from "react" | ||
|
||
import { storiesOf } from "@storybook/react" | ||
import { action } from "@storybook/addon-actions" | ||
|
||
import { Notification } from "./" | ||
|
||
storiesOf("toast notification", module).add("Basic", () => ( | ||
<div> | ||
<Notification | ||
type="info" | ||
message="This is main info message text" | ||
onClose={action("onClose")} | ||
/> | ||
<Notification | ||
type="error" | ||
message="This is main error message text" | ||
onClose={action("onClose")} | ||
/> | ||
<Notification | ||
type="success" | ||
message="This is main success message text" | ||
onClose={action("onClose")} | ||
/> | ||
<Notification | ||
type="warning" | ||
message="This is main warning message text" | ||
onClose={action("onClose")} | ||
/> | ||
<Notification | ||
type="notUsedType" | ||
message="This is main notUsedType message text" | ||
onClose={action("onClose")} | ||
/> | ||
</div> | ||
)) |