From 11c1004a41a9287c13ef15f28805863aab9fdea9 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 20 Dec 2016 15:54:59 -0800 Subject: [PATCH] Linted --- ui/app/app.js | 4 ++-- ui/app/{ => components}/notice.js | 2 -- ui/lib/lost-accounts-notice.js | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) rename ui/app/{ => components}/notice.js (96%) diff --git a/ui/app/app.js b/ui/app/app.js index 886bc987a..e98e635a2 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -16,7 +16,7 @@ const AccountDetailScreen = require('./account-detail') const SendTransactionScreen = require('./send') const ConfirmTxScreen = require('./conf-tx') // notice -const NoticeScreen = require('./notice') +const NoticeScreen = require('./components/notice') const lostAccountsNotice = require('../lib/lost-accounts-notice') // other views const ConfigScreen = require('./config') @@ -374,7 +374,7 @@ App.prototype.renderPrimary = function () { return h(NoticeScreen, { notice: props.lastUnreadNotice, key: 'NoticeScreen', - onConfirm: () => props.dispatch(actions.markNoticeRead(notice)), + onConfirm: () => props.dispatch(actions.markNoticeRead(props.lastUnreadNotice)), }) } else if (props.lostAccounts && props.lostAccounts.length > 0) { return h(NoticeScreen, { diff --git a/ui/app/notice.js b/ui/app/components/notice.js similarity index 96% rename from ui/app/notice.js rename to ui/app/components/notice.js index 92c171c4d..00db734d7 100644 --- a/ui/app/notice.js +++ b/ui/app/components/notice.js @@ -2,8 +2,6 @@ const inherits = require('util').inherits const Component = require('react').Component const h = require('react-hyperscript') const ReactMarkdown = require('react-markdown') -const connect = require('react-redux').connect -const actions = require('./actions') const linker = require('extension-link-enabler') const findDOMNode = require('react-dom').findDOMNode diff --git a/ui/lib/lost-accounts-notice.js b/ui/lib/lost-accounts-notice.js index 49b055778..948b13db6 100644 --- a/ui/lib/lost-accounts-notice.js +++ b/ui/lib/lost-accounts-notice.js @@ -18,6 +18,6 @@ These accounts have been marked as "Loose" so they will be easy to recognize in For more information, please read [our blog post.][1] [1]: https://medium.com/metamask/metamask-3-migration-guide-914b79533cdd#.7d8ktj4h3 - ` + `, } }