Fix dispatcher/notifications.tsx strict errors
Summary: And remove one migration warning that no longer applies. Reviewed By: danielbuechele Differential Revision: D17313469 fbshipit-source-id: f29a096a0da7c14735d1d5666a54a3351df54821
This commit is contained in:
committed by
Facebook Github Bot
parent
1b382d59c0
commit
6df299425e
@@ -35,7 +35,7 @@ export default (store: Store, logger: Logger) => {
|
||||
ipcRenderer.on(
|
||||
'notificationEvent',
|
||||
(
|
||||
e,
|
||||
_e: Error,
|
||||
eventName: NotificationEvents,
|
||||
pluginNotification: PluginNotification,
|
||||
arg: null | string | number,
|
||||
@@ -158,10 +158,10 @@ export default (store: Store, logger: Logger) => {
|
||||
// within the NOTIFICATION_THROTTLE.
|
||||
return;
|
||||
}
|
||||
const plugin = pluginMap.get(n.pluginId);
|
||||
ipcRenderer.send('sendNotification', {
|
||||
payload: {
|
||||
title: n.notification.title,
|
||||
// @ts-ignore Remove this when textContent is converted to tsx
|
||||
body: textContent(n.notification.message),
|
||||
actions: [
|
||||
{
|
||||
@@ -174,7 +174,7 @@ export default (store: Store, logger: Logger) => {
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
text: `Hide all ${pluginMap.get(n.pluginId).title || ''}`,
|
||||
text: `Hide all ${plugin != null ? plugin.title : ''}`,
|
||||
},
|
||||
],
|
||||
closeButtonText: 'Hide',
|
||||
|
||||
Reference in New Issue
Block a user