1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Rename function to be an action

This commit is contained in:
Dan Finlay 2016-12-22 14:09:10 -08:00
parent 9e54e3baa0
commit d3b2698f34

View File

@ -17,7 +17,7 @@ const SendTransactionScreen = require('./send')
const ConfirmTxScreen = require('./conf-tx') const ConfirmTxScreen = require('./conf-tx')
// notice // notice
const NoticeScreen = require('./components/notice') const NoticeScreen = require('./components/notice')
const lostAccountsNotice = require('../lib/lost-accounts-notice') const generateLostAccountsNotice = require('../lib/lost-accounts-notice')
// other views // other views
const ConfigScreen = require('./config') const ConfigScreen = require('./config')
const InfoScreen = require('./info') const InfoScreen = require('./info')
@ -378,7 +378,7 @@ App.prototype.renderPrimary = function () {
}) })
} else if (props.lostAccounts && props.lostAccounts.length > 0) { } else if (props.lostAccounts && props.lostAccounts.length > 0) {
return h(NoticeScreen, { return h(NoticeScreen, {
notice: lostAccountsNotice(props.lostAccounts), notice: generateLostAccountsNotice(props.lostAccounts),
key: 'LostAccountsNotice', key: 'LostAccountsNotice',
onConfirm: () => props.dispatch(actions.markAccountsFound()), onConfirm: () => props.dispatch(actions.markAccountsFound()),
}) })