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

25 lines
420 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,
2019-01-23 19:09:56 +01:00
sendToIsInWarning,
2018-04-07 00:29:51 +02:00
}
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
}
2019-01-23 19:09:56 +01:00
function sendToIsInWarning (state) {
return Boolean(state.send.warnings.to)
}
function getTokens (state) {
return state.metamask.tokens
}