1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-03 13:48:15 +00:00

Reviex fix - reducer to string

This commit is contained in:
Vladimir Volek 2018-10-11 14:50:34 +02:00 committed by Szymon Lesisz
parent f2ac90c46e
commit 60b0e35b2c
2 changed files with 7 additions and 7 deletions

View File

@ -11,8 +11,8 @@ export type NotificationAction = {
type: typeof NOTIFICATION.ADD, type: typeof NOTIFICATION.ADD,
payload: { payload: {
+type: string, +type: string,
+title: string, +title: React.Node | string,
+message?: React.Node | string, +message?: ?(React.Node | string),
+cancelable: boolean, +cancelable: boolean,
actions?: Array<CallbackAction> actions?: Array<CallbackAction>
} }

View File

@ -1,6 +1,6 @@
/* @flow */ /* @flow */
import * as React from 'react';
import { LOCATION_CHANGE } from 'react-router-redux'; import { LOCATION_CHANGE } from 'react-router-redux';
import * as NOTIFICATION from 'actions/constants/notification'; import * as NOTIFICATION from 'actions/constants/notification';
import { DEVICE } from 'trezor-connect'; import { DEVICE } from 'trezor-connect';
@ -17,8 +17,8 @@ export type NotificationEntry = {
+id: ?string; +id: ?string;
+devicePath: ?string; +devicePath: ?string;
+type: string; +type: string;
+title: string; +title: React.Node | string;
+message: string; +message: ?(React.Node | string);
+cancelable: boolean; +cancelable: boolean;
+actions: Array<CallbackAction>; +actions: Array<CallbackAction>;
} }
@ -43,8 +43,8 @@ const addNotification = (state: State, payload: any): State => {
id: payload.id, id: payload.id,
devicePath: payload.devicePath, devicePath: payload.devicePath,
type: payload.type, type: payload.type,
title: payload.title.toString(), title: payload.title,
message: payload.message.toString(), message: payload.message,
cancelable: payload.cancelable, cancelable: payload.cancelable,
actions: payload.actions, actions: payload.actions,
}); });