1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-28 05:12:18 +01:00
metamask-extension/ui/app/pages/send/send-content/add-recipient/add-recipient.selectors.js

20 lines
318 B
JavaScript
Raw Normal View History

2018-04-07 00:29:51 +02:00
const selectors = {
getToDropdownOpen,
getTokens,
2018-04-07 00:29:51 +02:00
sendToIsInError,
}
module.exports = selectors
function getToDropdownOpen (state) {
return state.send.toDropdownOpen
}
function sendToIsInError (state) {
return Boolean(state.send.errors.to)
2018-04-07 00:29:51 +02:00
}
function getTokens (state) {
return state.metamask.tokens
}