#73 safeUrl selector based on router props
This commit is contained in:
parent
c5e378be6e
commit
f75d022147
|
@ -9,6 +9,7 @@ import { type GlobalState } from '~/store'
|
||||||
import { sameAddress } from '~/logic/wallets/ethAddresses'
|
import { sameAddress } from '~/logic/wallets/ethAddresses'
|
||||||
import { activeTokensSelector } from '~/routes/tokens/store/selectors'
|
import { activeTokensSelector } from '~/routes/tokens/store/selectors'
|
||||||
import { type Token } from '~/routes/tokens/store/model/token'
|
import { type Token } from '~/routes/tokens/store/model/token'
|
||||||
|
import { safeParamAddressSelector } from '../store/selectors'
|
||||||
|
|
||||||
export type SelectorProps = {
|
export type SelectorProps = {
|
||||||
safe: SafeSelectorProps,
|
safe: SafeSelectorProps,
|
||||||
|
@ -16,6 +17,7 @@ export type SelectorProps = {
|
||||||
activeTokens: List<Token>,
|
activeTokens: List<Token>,
|
||||||
userAddress: string,
|
userAddress: string,
|
||||||
network: string,
|
network: string,
|
||||||
|
safeUrl: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const grantedSelector: Selector<GlobalState, RouterProps, boolean> = createSelector(
|
export const grantedSelector: Selector<GlobalState, RouterProps, boolean> = createSelector(
|
||||||
|
@ -46,4 +48,5 @@ export default createStructuredSelector({
|
||||||
granted: grantedSelector,
|
granted: grantedSelector,
|
||||||
userAddress: userAccountSelector,
|
userAddress: userAccountSelector,
|
||||||
network: networkSelector,
|
network: networkSelector,
|
||||||
|
safeUrl: safeParamAddressSelector,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue