2018-04-07 00:29:51 +02:00
|
|
|
const selectors = {
|
|
|
|
getToDropdownOpen,
|
2019-01-22 20:05:59 +01:00
|
|
|
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) {
|
2019-07-31 22:17:11 +02:00
|
|
|
return Boolean(state.send.errors.to)
|
2018-04-07 00:29:51 +02:00
|
|
|
}
|
2019-01-22 20:05:59 +01:00
|
|
|
|
2019-01-23 19:09:56 +01:00
|
|
|
function sendToIsInWarning (state) {
|
|
|
|
return Boolean(state.send.warnings.to)
|
|
|
|
}
|
|
|
|
|
2019-01-22 20:05:59 +01:00
|
|
|
function getTokens (state) {
|
|
|
|
return state.metamask.tokens
|
|
|
|
}
|