From 5df620a77299de33fc8990b553329171e27141d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=ABck=20V=C3=A9zien?= Date: Wed, 11 Apr 2018 16:51:35 +0200 Subject: [PATCH] Flow --- src/components/modals/Receive/01-step-account.js | 2 +- src/components/modals/Receive/03-step-confirm-address.js | 6 +++--- src/components/modals/Receive/04-step-receive-funds.js | 4 ++-- src/components/modals/StepConnectDevice.js | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/modals/Receive/01-step-account.js b/src/components/modals/Receive/01-step-account.js index 4413d06b..258653fd 100644 --- a/src/components/modals/Receive/01-step-account.js +++ b/src/components/modals/Receive/01-step-account.js @@ -10,7 +10,7 @@ import Label from 'components/base/Label' import SelectAccount from 'components/SelectAccount' type Props = { - account: Account | null, + account: ?Account, onChangeAccount: Function, t: T, } diff --git a/src/components/modals/Receive/03-step-confirm-address.js b/src/components/modals/Receive/03-step-confirm-address.js index f2ab4ea4..3c008b01 100644 --- a/src/components/modals/Receive/03-step-confirm-address.js +++ b/src/components/modals/Receive/03-step-confirm-address.js @@ -31,9 +31,9 @@ const Text = styled(Box).attrs({ ` type Props = { - account: Account | null, - addressVerified: boolean | null, - device: Device | null, + account: ?Account, + addressVerified: ?boolean, + device: ?Device, onCheck: Function, t: T, } diff --git a/src/components/modals/Receive/04-step-receive-funds.js b/src/components/modals/Receive/04-step-receive-funds.js index c514ed29..9a51f66f 100644 --- a/src/components/modals/Receive/04-step-receive-funds.js +++ b/src/components/modals/Receive/04-step-receive-funds.js @@ -12,8 +12,8 @@ import SelectAccount from 'components/SelectAccount' import RequestAmount from 'components/RequestAmount' type Props = { - account: Account | null, - addressVerified: boolean | null, + account: ?Account, + addressVerified: ?boolean, amount: string | number, onChangeAmount: Function, onVerify: Function, diff --git a/src/components/modals/StepConnectDevice.js b/src/components/modals/StepConnectDevice.js index 74a89ea8..08ec1e47 100644 --- a/src/components/modals/StepConnectDevice.js +++ b/src/components/modals/StepConnectDevice.js @@ -11,9 +11,9 @@ import DeviceMonit from 'components/DeviceMonitNew' type Props = { accountName?: string, - account?: Account | null, - currency?: Currency | null, - deviceSelected: Device | null, + account?: ?Account, + currency?: ?Currency, + deviceSelected: ?Device, onChangeDevice: Function, onStatusChange: Function, }