File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed
components/Modal/MapOperatorToStakingProviderModal
hooks/staking-applications Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import {
3030 isSameETHAddress ,
3131 AddressZero ,
3232} from "../../../web3/utils"
33- import { selectMappedOperatorsAndAdditionalData } from "../../../store/account/selectors"
33+ import { selectMappedOperators } from "../../../store/account/selectors"
3434import { useAppSelector } from "../../../hooks/store"
3535
3636export interface MapOperatorToStakingProviderModalProps {
@@ -52,7 +52,7 @@ const MapOperatorToStakingProviderModal: FC<
5252 mappedOperatorRandomBeacon,
5353 isOperatorMappedOnlyInRandomBeacon,
5454 isOperatorMappedOnlyInTbtc,
55- } = useAppSelector ( selectMappedOperatorsAndAdditionalData )
55+ } = useAppSelector ( selectMappedOperators )
5656
5757 const onSubmit = async ( {
5858 operator,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { useWeb3React } from "@web3-react/core"
77import { OperatorMappedSuccessTx } from "../../components/Modal/MapOperatorToStakingProviderSuccessModal"
88import { mapOperatorToStakingProviderModalClosed } from "../../store/modal"
99import { useAppDispatch , useAppSelector } from "../store"
10- import { selectMappedOperatorsAndAdditionalData } from "../../store/account"
10+ import { selectMappedOperators } from "../../store/account"
1111
1212export const useRegisterMultipleOperatorsTransaction = ( ) => {
1313 const {
@@ -16,7 +16,7 @@ export const useRegisterMultipleOperatorsTransaction = () => {
1616 isOperatorMappedInBothApps,
1717 isOperatorMappedOnlyInRandomBeacon,
1818 isOperatorMappedOnlyInTbtc,
19- } = useAppSelector ( ( state ) => selectMappedOperatorsAndAdditionalData ( state ) )
19+ } = useAppSelector ( ( state ) => selectMappedOperators ( state ) )
2020 const { account } = useWeb3React ( )
2121 const { openModal, closeModal } = useModal ( )
2222 const dispatch = useAppDispatch ( )
Original file line number Diff line number Diff line change @@ -12,14 +12,12 @@ import { FC } from "react"
1212import { ModalType } from "../../enums"
1313import { useAppSelector } from "../../hooks/store"
1414import { useModal } from "../../hooks/useModal"
15- import { selectMappedOperatorsAndAdditionalData } from "../../store/account/selectors"
15+ import { selectMappedOperators } from "../../store/account/selectors"
1616
1717const OperatorAddressMappingCard : FC = ( ) => {
1818 const { openModal } = useModal ( )
1919
20- const { isOneOfTheAppsNotMapped } = useAppSelector (
21- selectMappedOperatorsAndAdditionalData
22- )
20+ const { isOneOfTheAppsNotMapped } = useAppSelector ( selectMappedOperators )
2321
2422 const onStartMappingClick = ( ) => {
2523 openModal ( ModalType . MapOperatorToStakingProvider )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { AccountState } from "./slice"
55
66export const selectAccountState = ( state : RootState ) => state . account
77
8- export const selectMappedOperatorsAndAdditionalData = createSelector (
8+ export const selectMappedOperators = createSelector (
99 [ selectAccountState ] ,
1010 ( accountState : AccountState ) => {
1111 const { randomBeacon, tbtc } = accountState . operatorMapping . data
You can’t perform that action at this time.
0 commit comments