Commit e9bb031e authored by Viktor Baranov's avatar Viktor Baranov

Fix typos in namings

parent 50ffed22
...@@ -2,5 +2,5 @@ export type IndexingStatus = { ...@@ -2,5 +2,5 @@ export type IndexingStatus = {
finished_indexing: boolean; finished_indexing: boolean;
finished_indexing_blocks: boolean; finished_indexing_blocks: boolean;
indexed_blocks_ratio: string; indexed_blocks_ratio: string;
indexed_inernal_transactions_ratio: string; indexed_internal_transactions_ratio: string;
} }
...@@ -50,7 +50,7 @@ const AddressTokens = () => { ...@@ -50,7 +50,7 @@ const AddressTokens = () => {
return ( return (
<> <>
<TokenBalances/> <TokenBalances/>
{ /* should stay before tabs to scroll up whith pagination */ } { /* should stay before tabs to scroll up with pagination */ }
<Box ref={ scrollRef }></Box> <Box ref={ scrollRef }></Box>
<RoutedTabs <RoutedTabs
tabs={ tabs } tabs={ tabs }
......
...@@ -52,12 +52,12 @@ const IndexingAlert = ({ className }: { className?: string }) => { ...@@ -52,12 +52,12 @@ const IndexingAlert = ({ className }: { className?: string }) => {
handler: handleBlocksIndexStatus, handler: handleBlocksIndexStatus,
}); });
const handleIntermalTxsIndexStatus: SocketMessage.InternalTxsIndexStatus['handler'] = React.useCallback((payload) => { const handleInternalTxsIndexStatus: SocketMessage.InternalTxsIndexStatus['handler'] = React.useCallback((payload) => {
queryClient.setQueryData(getResourceKey('homepage_indexing_status'), (prevData: IndexingStatus | undefined) => { queryClient.setQueryData(getResourceKey('homepage_indexing_status'), (prevData: IndexingStatus | undefined) => {
const newData = prevData ? { ...prevData } : {} as IndexingStatus; const newData = prevData ? { ...prevData } : {} as IndexingStatus;
newData.finished_indexing = payload.finished; newData.finished_indexing = payload.finished;
newData.indexed_inernal_transactions_ratio = payload.ratio; newData.indexed_internal_transactions_ratio = payload.ratio;
return newData; return newData;
}); });
...@@ -71,7 +71,7 @@ const IndexingAlert = ({ className }: { className?: string }) => { ...@@ -71,7 +71,7 @@ const IndexingAlert = ({ className }: { className?: string }) => {
useSocketMessage({ useSocketMessage({
channel: internalTxsIndexingChannel, channel: internalTxsIndexingChannel,
event: 'internal_txs_index_status', event: 'internal_txs_index_status',
handler: handleIntermalTxsIndexStatus, handler: handleInternalTxsIndexStatus,
}); });
if (isError) { if (isError) {
...@@ -87,8 +87,8 @@ const IndexingAlert = ({ className }: { className?: string }) => { ...@@ -87,8 +87,8 @@ const IndexingAlert = ({ className }: { className?: string }) => {
content = `${ data.indexed_blocks_ratio && `${ Math.floor(Number(data.indexed_blocks_ratio) * 100) }% Blocks Indexed${ nbsp }${ ndash } ` } content = `${ data.indexed_blocks_ratio && `${ Math.floor(Number(data.indexed_blocks_ratio) * 100) }% Blocks Indexed${ nbsp }${ ndash } ` }
We're indexing this chain right now. Some of the counts may be inaccurate.` ; We're indexing this chain right now. Some of the counts may be inaccurate.` ;
} else if (data.finished_indexing === false) { } else if (data.finished_indexing === false) {
content = `${ data.indexed_inernal_transactions_ratio && content = `${ data.indexed_internal_transactions_ratio &&
`${ Math.floor(Number(data.indexed_inernal_transactions_ratio) * 100) }% Blocks With Internal Transactions Indexed${ nbsp }${ ndash } ` } `${ Math.floor(Number(data.indexed_internal_transactions_ratio) * 100) }% Blocks With Internal Transactions Indexed${ nbsp }${ ndash } ` }
We're indexing this chain right now. Some of the counts may be inaccurate.`; We're indexing this chain right now. Some of the counts may be inaccurate.`;
} }
......
...@@ -112,7 +112,7 @@ const AddressPageContent = () => { ...@@ -112,7 +112,7 @@ const AddressPageContent = () => {
/> />
) } ) }
<AddressDetails addressQuery={ addressQuery } scrollRef={ tabsScrollRef }/> <AddressDetails addressQuery={ addressQuery } scrollRef={ tabsScrollRef }/>
{ /* should stay before tabs to scroll up whith pagination */ } { /* should stay before tabs to scroll up with pagination */ }
<Box ref={ tabsScrollRef }></Box> <Box ref={ tabsScrollRef }></Box>
{ addressQuery.isLoading ? <SkeletonTabs/> : content } { addressQuery.isLoading ? <SkeletonTabs/> : content }
{ !addressQuery.isLoading && !addressQuery.isError && <Box h={{ base: 0, lg: '40vh' }}/> } { !addressQuery.isLoading && !addressQuery.isError && <Box h={{ base: 0, lg: '40vh' }}/> }
......
...@@ -178,7 +178,7 @@ const TokenPageContent = () => { ...@@ -178,7 +178,7 @@ const TokenPageContent = () => {
) } ) }
<TokenContractInfo tokenQuery={ tokenQuery }/> <TokenContractInfo tokenQuery={ tokenQuery }/>
<TokenDetails tokenQuery={ tokenQuery }/> <TokenDetails tokenQuery={ tokenQuery }/>
{ /* should stay before tabs to scroll up whith pagination */ } { /* should stay before tabs to scroll up with pagination */ }
<Box ref={ scrollRef }></Box> <Box ref={ scrollRef }></Box>
{ tokenQuery.isLoading || contractQuery.isLoading ? <SkeletonTabs/> : ( { tokenQuery.isLoading || contractQuery.isLoading ? <SkeletonTabs/> : (
......
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