You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -140,6 +140,21 @@ _Italic text, formatted with single underscores_
140
140
141
141
constimage=``;
142
142
143
+
consterror={
144
+
title: 'Could not load chat',
145
+
children: 'Wait a few minutes and check your network settings. If the issue persists: ',
146
+
actionLinks: (
147
+
<React.Fragment>
148
+
<AlertActionLinkcomponent="a"href="#">
149
+
Start a new chat
150
+
</AlertActionLink>
151
+
<AlertActionLinkcomponent="a"href="#">
152
+
Contact support
153
+
</AlertActionLink>
154
+
</React.Fragment>
155
+
)
156
+
};
157
+
143
158
return(
144
159
<>
145
160
<Message
@@ -258,6 +273,13 @@ _Italic text, formatted with single underscores_
258
273
label="Image"
259
274
id="image"
260
275
/>
276
+
<Radio
277
+
isChecked={variant==='error'}
278
+
onChange={()=>setVariant('error')}
279
+
name="bot-message-error"
280
+
label="Error"
281
+
id="error"
282
+
/>
261
283
</FormGroup>
262
284
</Form>
263
285
<Message
@@ -268,6 +290,7 @@ _Italic text, formatted with single underscores_
268
290
tableProps={
269
291
variant==='table' ? {'aria-label': 'App information and user roles for bot messages'} : undefined
@@ -140,6 +140,21 @@ _Italic text, formatted with single underscores_
140
140
141
141
constimage=``;
142
142
143
+
consterror={
144
+
title: 'Could not load chat',
145
+
children: 'Wait a few minutes and check your network settings. If the issue persists: ',
146
+
actionLinks: (
147
+
<React.Fragment>
148
+
<AlertActionLinkcomponent="a"href="#">
149
+
Start a new chat
150
+
</AlertActionLink>
151
+
<AlertActionLinkcomponent="a"href="#">
152
+
Contact support
153
+
</AlertActionLink>
154
+
</React.Fragment>
155
+
)
156
+
};
157
+
143
158
return(
144
159
<>
145
160
<Message
@@ -235,6 +250,13 @@ _Italic text, formatted with single underscores_
235
250
label="Image"
236
251
id="user-image"
237
252
/>
253
+
<Radio
254
+
isChecked={variant==='error'}
255
+
onChange={()=>setVariant('error')}
256
+
name="user-message-error"
257
+
label="Error"
258
+
id="user-error"
259
+
/>
238
260
</FormGroup>
239
261
</Form>
240
262
<Message
@@ -245,6 +267,7 @@ _Italic text, formatted with single underscores_
245
267
tableProps={
246
268
variant==='table' ? {'aria-label': 'App information and user roles for user messages'} : undefined
constIMAGE=``;
143
144
145
+
constERROR={
146
+
title: 'Could not load chat',
147
+
children: 'Wait a few minutes and check your network settings. If the issue persists: ',
0 commit comments