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
@@ -24,6 +24,7 @@ import {ClientDescription, timeout} from 'flipper-common';
|
||||
import {reportPlatformFailures} from 'flipper-common';
|
||||
import {sideEffect} from '../utils/sideEffect';
|
||||
import {waitFor} from '../utils/waitFor';
|
||||
import {NotificationBody} from '../ui/components/NotificationBody';
|
||||
|
||||
export function connectFlipperServerToStore(
|
||||
server: FlipperServer,
|
||||
@@ -35,7 +36,7 @@ export function connectFlipperServerToStore(
|
||||
console.warn(text);
|
||||
notification.open({
|
||||
message: title,
|
||||
description: description,
|
||||
description: <NotificationBody text={description} />,
|
||||
type: type,
|
||||
duration: 0,
|
||||
key: text,
|
||||
@@ -50,7 +51,7 @@ export function connectFlipperServerToStore(
|
||||
} else {
|
||||
notification.error({
|
||||
message: 'Connection error',
|
||||
description: <>{err.message ?? err}</>,
|
||||
description: <NotificationBody text={err.message ?? err} />,
|
||||
duration: null,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user