|
|
@ -6,7 +6,7 @@ import { |
|
|
|
getNativeCurrency, |
|
|
|
getNativeCurrency, |
|
|
|
getAccountsWithLabels, |
|
|
|
getAccountsWithLabels, |
|
|
|
getLastConnectedInfo, |
|
|
|
getLastConnectedInfo, |
|
|
|
getTargetDomainMetadata, |
|
|
|
getDomainMetadata, |
|
|
|
getSelectedAddress, |
|
|
|
getSelectedAddress, |
|
|
|
} from '../../selectors' |
|
|
|
} from '../../selectors' |
|
|
|
|
|
|
|
|
|
|
@ -42,6 +42,15 @@ const mapStateToProps = (state, ownProps) => { |
|
|
|
const { origin } = metadata |
|
|
|
const { origin } = metadata |
|
|
|
const nativeCurrency = getNativeCurrency(state) |
|
|
|
const nativeCurrency = getNativeCurrency(state) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const domainMetadata = getDomainMetadata(state) |
|
|
|
|
|
|
|
const targetDomainMetadata = origin |
|
|
|
|
|
|
|
? domainMetadata[origin] || { |
|
|
|
|
|
|
|
origin, |
|
|
|
|
|
|
|
name: (new URL(origin)).hostname, |
|
|
|
|
|
|
|
icon: null, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
: null |
|
|
|
|
|
|
|
|
|
|
|
const accountsWithLabels = getAccountsWithLabels(state) |
|
|
|
const accountsWithLabels = getAccountsWithLabels(state) |
|
|
|
|
|
|
|
|
|
|
|
const lastConnectedInfo = getLastConnectedInfo(state) || {} |
|
|
|
const lastConnectedInfo = getLastConnectedInfo(state) || {} |
|
|
@ -63,8 +72,6 @@ const mapStateToProps = (state, ownProps) => { |
|
|
|
throw new Error('Incorrect path for permissions-connect component') |
|
|
|
throw new Error('Incorrect path for permissions-connect component') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const targetDomainMetadata = getTargetDomainMetadata(state, permissionsRequest, origin) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
permissionsRequest, |
|
|
|
permissionsRequest, |
|
|
|
permissionsRequestId, |
|
|
|
permissionsRequestId, |
|
|
|