From 8cc69b7cb57cc1a8a968392b78ff4dc59556b7f3 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Tue, 12 Feb 2019 18:40:28 +0100 Subject: [PATCH] defineMessage for babel plugin --- src/views/Wallet/views/Dashboard/index.messages.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/views/Wallet/views/Dashboard/index.messages.js b/src/views/Wallet/views/Dashboard/index.messages.js index 5ee8098c..0505d977 100644 --- a/src/views/Wallet/views/Dashboard/index.messages.js +++ b/src/views/Wallet/views/Dashboard/index.messages.js @@ -2,8 +2,7 @@ import { defineMessages } from 'react-intl'; import type { Messages } from 'flowtype/npm/react-intl'; - -const messages: Messages = { +const definedMessages: Messages = defineMessages({ title: { id: 'dashboard.selectyourcoin.title', defaultMessage: 'Please select your coin', @@ -14,8 +13,6 @@ const messages: Messages = { defaultMessage: 'You will gain access to receiving & sending selected coin', description: 'Content of the dashboard component if coin was not selected', }, -}; - -const definedMessages: typeof messages = defineMessages(messages); +}); export default definedMessages; \ No newline at end of file