Commit 7df73fcd authored by Yuri Mikhin's avatar Yuri Mikhin Committed by Yuri Mikhin

Rename stats query key to homeStats query key.

parent e4c18d36
...@@ -3,6 +3,7 @@ export enum QueryKeys { ...@@ -3,6 +3,7 @@ export enum QueryKeys {
profile = 'profile', profile = 'profile',
txsValidate = 'txs-validated', txsValidate = 'txs-validated',
txsPending = 'txs-pending', txsPending = 'txs-pending',
homeStats='homeStats',
stats='stats', stats='stats',
tx = 'tx', tx = 'tx',
txInternals = 'tx-internals', txInternals = 'tx-internals',
......
...@@ -32,7 +32,7 @@ const LatestBlocks = () => { ...@@ -32,7 +32,7 @@ const LatestBlocks = () => {
const queryClient = useQueryClient(); const queryClient = useQueryClient();
const statsQueryResult = useQuery<unknown, unknown, HomeStats>( const statsQueryResult = useQuery<unknown, unknown, HomeStats>(
[ QueryKeys.stats ], [ QueryKeys.homeStats ],
() => fetch('/node-api/stats'), () => fetch('/node-api/stats'),
); );
......
...@@ -27,7 +27,7 @@ const Stats = () => { ...@@ -27,7 +27,7 @@ const Stats = () => {
const fetch = useFetch(); const fetch = useFetch();
const { data, isLoading, isError } = useQuery<unknown, unknown, HomeStats>( const { data, isLoading, isError } = useQuery<unknown, unknown, HomeStats>(
[ QueryKeys.stats ], [ QueryKeys.homeStats ],
async() => await fetch(`/node-api/stats`), async() => await fetch(`/node-api/stats`),
); );
......
...@@ -36,7 +36,7 @@ const ChainIndicators = () => { ...@@ -36,7 +36,7 @@ const ChainIndicators = () => {
const fetch = useFetch(); const fetch = useFetch();
const statsQueryResult = useQuery<unknown, unknown, HomeStats>( const statsQueryResult = useQuery<unknown, unknown, HomeStats>(
[ QueryKeys.stats ], [ QueryKeys.homeStats ],
() => fetch('/node-api/stats'), () => fetch('/node-api/stats'),
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment