Limit notification length
Summary: See https://fb.workplace.com/groups/flippersupport/permalink/1593262167821102/ Reviewed By: antonk52 Differential Revision: D44459787 fbshipit-source-id: ef14e560c523fddf4f815d0faafa37e44dc416b8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
914db21c7d
commit
35c145463a
@@ -14,6 +14,7 @@ import {setStaticView} from '../reducers/connections';
|
||||
import {getStore} from '../store';
|
||||
import {Layout} from '../ui';
|
||||
import {v4 as uuid} from 'uuid';
|
||||
import {NotificationBody} from '../ui/components/NotificationBody';
|
||||
|
||||
const {Link} = Typography;
|
||||
|
||||
@@ -22,9 +23,10 @@ export function showErrorNotification(message: string, description?: string) {
|
||||
notification.error({
|
||||
key,
|
||||
message,
|
||||
description: (
|
||||
description: description ? (
|
||||
<NotificationBody text={description} />
|
||||
) : (
|
||||
<Layout.Container gap>
|
||||
{description ?? <p>{description}</p>}
|
||||
<p>
|
||||
See{' '}
|
||||
<Link
|
||||
|
||||
Reference in New Issue
Block a user