2
import * as React from "react";
3
import { storiesOf } from "@storybook/react";
4
import { action } from "@storybook/addon-actions";
5
import StoryRouter from "storybook-router";
6
import NotificationList from "../Components/NotificationList/NotificationList";
10
"1505225036949654be-b364-4725-b2d2-e2b0ffbd058858661cb5-e6b2-4c8f-9a82-5e83673127d8": {
12
timestamp: 1505222055,
13
metric: "KE.houston.daemons.error.errors.Focus_Production_Bingo_ElFeederMspIndex.1",
16
trigger_id: "f51bdab7-11ed-4ac4-9836-8a88b184cb67",
17
sub_id: "58661cb5-e6b2-4c8f-9a82-5e83673127d8",
22
id: "f51bdab7-11ed-4ac4-9836-8a88b184cb67",
23
name: "Declarant errors",
25
targets: ["KE.houston.daemons.error.*.*ElFeeder*.*"],
28
__notifier_trigger_tags: ["critical", "ElFeeders", "Focus"],
33
id: "949654be-b364-4725-b2d2-e2b0ffbd0588",
38
timestamp: 1505225036,
40
"15052239865d7c1ee2-78d8-46c0-bb67-16895303b4b058661cb5-e6b2-4c8f-9a82-5e83673127d8": {
42
timestamp: 1505222055,
43
metric: "KE.houston.daemons.error.errors.Focus_Production_Bingo_ElFeederMspIndex.1",
46
trigger_id: "f51bdab7-11ed-4ac4-9836-8a88b184cb67",
47
sub_id: "58661cb5-e6b2-4c8f-9a82-5e83673127d8",
52
id: "f51bdab7-11ed-4ac4-9836-8a88b184cb67",
53
name: "Focus Houston ElFeeders",
55
targets: ["KE.houston.daemons.error.*.*ElFeeder*.*"],
58
__notifier_trigger_tags: ["critical", "ElFeeders", "Focus"],
62
value: "user@skbkontur.ru",
63
id: "5d7c1ee2-78d8-46c0-bb67-16895303b4b0",
68
timestamp: 1505223986,
72
storiesOf("NotificationList", module)
73
.addDecorator(StoryRouter())
74
.add("Default", () => <NotificationList items={items} onRemove={action("onRemove")} />)
75
.add("Empty", () => <NotificationList items={{}} onRemove={action("onRemove")} />);