11import React , { Fragment } from 'react' ;
2- import { withKnobs , text } from '@storybook/addon-knobs' ;
2+ import { boolean , text , withKnobs } from '@storybook/addon-knobs' ;
33import { action } from '@storybook/addon-actions' ;
44
55import { Alert , MessageTypes } from 'src/Alert' ;
@@ -26,6 +26,7 @@ export const Success = () => (
2626 < Alert
2727 id = "1"
2828 message = { text ( 'Message' , 'Success message' ) }
29+ removeBorderLeft = { boolean ( 'removeBorderLeft' , false ) }
2930 title = { text ( 'Title' , 'Success title' ) }
3031 type = { MessageTypes . SUCCESS }
3132 />
@@ -35,6 +36,7 @@ export const Info = () => (
3536 < Alert
3637 id = "2"
3738 message = { text ( 'Message' , 'Info message' ) }
39+ removeBorderLeft = { boolean ( 'removeBorderLeft' , false ) }
3840 title = { text ( 'Title' , 'Info title' ) }
3941 type = { MessageTypes . INFO }
4042 />
@@ -44,6 +46,7 @@ export const Announcement = () => (
4446 < Alert
4547 id = "3"
4648 message = { text ( 'Message' , 'Announcement message' ) }
49+ removeBorderLeft = { boolean ( 'removeBorderLeft' , false ) }
4750 title = { text ( 'Title' , 'Announcement title' ) }
4851 type = { MessageTypes . ANNOUNCEMENT }
4952 />
@@ -53,6 +56,7 @@ export const Error = () => (
5356 < Alert
5457 id = "4"
5558 message = { text ( 'Message' , 'Error message' ) }
59+ removeBorderLeft = { boolean ( 'removeBorderLeft' , false ) }
5660 title = { text ( 'Title' , 'Error title' ) }
5761 type = { MessageTypes . ERROR }
5862 />
@@ -62,6 +66,7 @@ export const Warning = () => (
6266 < Alert
6367 id = "5"
6468 message = { text ( 'Message' , 'Warning message' ) }
69+ removeBorderLeft = { boolean ( 'removeBorderLeft' , false ) }
6570 title = { text ( 'Title' , 'Warning title' ) }
6671 type = { MessageTypes . WARNING }
6772 />
@@ -75,6 +80,7 @@ export const WithDismiss = () => (
7580 < Alert
7681 id = "6"
7782 message = { text ( 'Message' , 'Default message' ) }
83+ removeBorderLeft = { boolean ( 'removeBorderLeft' , false ) }
7884 title = { text ( 'Title' , 'Default title' ) }
7985 type = { MessageTypes . SUCCESS }
8086 onDismiss = { onDismiss }
@@ -108,6 +114,7 @@ export const WithCallToAction = () => (
108114 action = { { content : 'Primary action' , url : 'https://www.userinterviews.com/' } }
109115 id = "8"
110116 message = "Success message"
117+ removeBorderLeft = { boolean ( 'removeBorderLeft' , false ) }
111118 title = "Success title"
112119 type = { MessageTypes . SUCCESS }
113120 onDismiss = { onDismiss }
@@ -116,6 +123,7 @@ export const WithCallToAction = () => (
116123 action = { { content : 'Primary action' , url : 'https://www.userinterviews.com/' } }
117124 id = "9"
118125 message = "Info message"
126+ removeBorderLeft = { boolean ( 'removeBorderLeft' , false ) }
119127 title = "Info title"
120128 type = { MessageTypes . INFO }
121129 onDismiss = { onDismiss }
@@ -124,6 +132,7 @@ export const WithCallToAction = () => (
124132 action = { { content : 'Primary action' , url : 'https://www.userinterviews.com/' } }
125133 id = "10"
126134 message = "Announcement message"
135+ removeBorderLeft = { boolean ( 'removeBorderLeft' , false ) }
127136 title = "Announcement title"
128137 type = { MessageTypes . ANNOUNCEMENT }
129138 onDismiss = { onDismiss }
@@ -132,6 +141,7 @@ export const WithCallToAction = () => (
132141 action = { { content : 'Primary action' , url : 'https://www.userinterviews.com/' } }
133142 id = "11"
134143 message = "Error message"
144+ removeBorderLeft = { boolean ( 'removeBorderLeft' , false ) }
135145 title = "Error title"
136146 type = { MessageTypes . ERROR }
137147 onDismiss = { onDismiss }
@@ -140,6 +150,7 @@ export const WithCallToAction = () => (
140150 action = { { content : 'Primary action' , url : 'https://www.userinterviews.com/' } }
141151 id = "12"
142152 message = "Warning message"
153+ removeBorderLeft = { boolean ( 'removeBorderLeft' , false ) }
143154 title = "Warning title"
144155 type = { MessageTypes . WARNING }
145156 onDismiss = { onDismiss }
@@ -156,6 +167,7 @@ export const WithCallToAction = () => (
156167 < GoogleCalendarButton />
157168 </ Fragment >
158169 ) }
170+ removeBorderLeft = { boolean ( 'removeBorderLeft' , false ) }
159171 title = { text ( 'Title' , 'Connect to Google Calendar to create reminders automatically' ) }
160172 type = { MessageTypes . ANNOUNCEMENT }
161173 onDismiss = { onDismiss }
@@ -167,6 +179,7 @@ export const WithCallToAction = () => (
167179 id = "8"
168180 message = { text ( 'Message' , `When you confirm a session we’ll automatically
169181 add an event and reminders to your Google Calendar.` ) }
182+ removeBorderLeft = { boolean ( 'removeBorderLeft' , false ) }
170183 title = { text ( 'Title' , 'Connect to Google Calendar to create reminders automatically' ) }
171184 type = { MessageTypes . ANNOUNCEMENT }
172185 onDismiss = { onDismiss }
0 commit comments