Skip to content

Commit

Permalink
use useValidatorAddressesQuery in validator recoil
Browse files Browse the repository at this point in the history
  • Loading branch information
MonikaCat committed Dec 6, 2023
1 parent 05fd78e commit 733e5ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/recoil/validators/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { useEffect } from 'react';
import { useRecoilCallback } from 'recoil';
import { AtomState as ValidatorAtomState } from 'ui/recoil/validators';
import { useValidatorsAddressListQuery } from '@/graphql/types/general_types';
import { useValidatorAddressesQuery } from '@/graphql/types/general_types';
import { atomFamilyState as profileAtomFamilyState } from '@/recoil/profiles/atom';
import type { AtomState as ProfileAtomState } from '@/recoil/profiles/types';
import { atomFamilyState as validatorAtomState } from '@/recoil/validators/atom';

export const useValidatorRecoil = () => {
const { loading: loadingValidator, data } = useValidatorsAddressListQuery();
const { loading: loadingValidator, data } = useValidatorAddressesQuery();
const setValidatorAtomState = useRecoilCallback(
({ set }) =>
(consensusAddress: string, newState: ValidatorAtomState) =>
Expand Down

0 comments on commit 733e5ba

Please sign in to comment.