mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-30 20:28:09 +00:00
Reviex fix - reducer to string
This commit is contained in:
parent
f2ac90c46e
commit
60b0e35b2c
@ -11,8 +11,8 @@ export type NotificationAction = {
|
||||
type: typeof NOTIFICATION.ADD,
|
||||
payload: {
|
||||
+type: string,
|
||||
+title: string,
|
||||
+message?: React.Node | string,
|
||||
+title: React.Node | string,
|
||||
+message?: ?(React.Node | string),
|
||||
+cancelable: boolean,
|
||||
actions?: Array<CallbackAction>
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @flow */
|
||||
|
||||
|
||||
import * as React from 'react';
|
||||
import { LOCATION_CHANGE } from 'react-router-redux';
|
||||
import * as NOTIFICATION from 'actions/constants/notification';
|
||||
import { DEVICE } from 'trezor-connect';
|
||||
@ -17,8 +17,8 @@ export type NotificationEntry = {
|
||||
+id: ?string;
|
||||
+devicePath: ?string;
|
||||
+type: string;
|
||||
+title: string;
|
||||
+message: string;
|
||||
+title: React.Node | string;
|
||||
+message: ?(React.Node | string);
|
||||
+cancelable: boolean;
|
||||
+actions: Array<CallbackAction>;
|
||||
}
|
||||
@ -43,8 +43,8 @@ const addNotification = (state: State, payload: any): State => {
|
||||
id: payload.id,
|
||||
devicePath: payload.devicePath,
|
||||
type: payload.type,
|
||||
title: payload.title.toString(),
|
||||
message: payload.message.toString(),
|
||||
title: payload.title,
|
||||
message: payload.message,
|
||||
cancelable: payload.cancelable,
|
||||
actions: payload.actions,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user