Cleanup global notifications UI
Summary: We don't need to show plugin-related details and button "open globalError" (which anyway doesn't work) when showing global notifications. Reviewed By: passy Differential Revision: D28900468 fbshipit-source-id: 54347ede4f1e4dbfb0e41be5c50374fda35c1223
This commit is contained in:
committed by
Facebook GitHub Bot
parent
90d40ac385
commit
9a2677fc24
@@ -12,6 +12,8 @@ import {Actions} from './';
|
||||
import {getStringFromErrorLike} from '../utils';
|
||||
import React from 'react';
|
||||
|
||||
export const GLOBAL_NOTIFICATION_PLUGIN_ID = 'Flipper';
|
||||
|
||||
export type PluginNotification = {
|
||||
notification: Notification;
|
||||
pluginId: string;
|
||||
@@ -208,7 +210,7 @@ export function addErrorNotification(
|
||||
console.warn(title, message, error);
|
||||
return addNotification({
|
||||
client: null,
|
||||
pluginId: 'globalError',
|
||||
pluginId: GLOBAL_NOTIFICATION_PLUGIN_ID,
|
||||
notification: {
|
||||
id: title,
|
||||
title,
|
||||
|
||||
Reference in New Issue
Block a user