mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 05:12:18 +01:00
624139a00f
* Remove unused sendWarnings The send warnings state and associated component is no longer used anywhere. * Remove unused subtitleParams The `subtitleParams` SendHeader prop was being ignored. It has been removed, along with associated selectors and tests.
20 lines
318 B
JavaScript
20 lines
318 B
JavaScript
const selectors = {
|
|
getToDropdownOpen,
|
|
getTokens,
|
|
sendToIsInError,
|
|
}
|
|
|
|
module.exports = selectors
|
|
|
|
function getToDropdownOpen (state) {
|
|
return state.send.toDropdownOpen
|
|
}
|
|
|
|
function sendToIsInError (state) {
|
|
return Boolean(state.send.errors.to)
|
|
}
|
|
|
|
function getTokens (state) {
|
|
return state.metamask.tokens
|
|
}
|