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:
Andrey Goncharov
2023-03-28 07:00:20 -07:00
committed by Facebook GitHub Bot
parent 914db21c7d
commit 35c145463a
4 changed files with 59 additions and 6 deletions

View File

@@ -16,6 +16,7 @@ import {useStore} from '../utils/useStore';
import {getAppVersion} from '../utils/info';
import {checkForUpdate} from '../fb-stubs/checkForUpdate';
import {getRenderHostInstance} from 'flipper-frontend-core';
import {NotificationBody} from '../ui/components/NotificationBody';
export type VersionCheckResult =
| {
@@ -71,7 +72,7 @@ export default function UpdateIndicator() {
placement: 'bottomLeft',
key: 'launchermsg',
message: 'Launch problem',
description: launcherMsg.message,
description: <NotificationBody text={launcherMsg.message} />,
duration: null,
});
} else {
@@ -79,7 +80,7 @@ export default function UpdateIndicator() {
placement: 'bottomLeft',
key: 'launchermsg',
message: 'Flipper version warning',
description: launcherMsg.message,
description: <NotificationBody text={launcherMsg.message} />,
duration: null,
});
}