Skip to content

Commit

Permalink
Follow code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Mar 16, 2023
1 parent d3eb611 commit b111c70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/pages/SearchResultsPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
useGetRuntimeBlockByHeight,
useGetRuntimeTransactionsTxHash,
Runtime,
Layer,
} from '../../../oasis-indexer/api'
import { useGetRosePrice } from '../../../coin-gecko/api'
import { AccountDetailsView } from '../AccountDetailsPage'
Expand All @@ -21,7 +22,6 @@ import { TextSkeleton } from '../../components/Skeleton'
import { useRedirectIfSingleResult } from './useRedirectIfSingleResult'
import { NoResults } from './NoResults'
import { RouteUtils } from '../../utils/route-utils'
import { Layer } from '../../../config'
import { ResultsGroup } from './ResultsGroup'

function isDefined<T>(item: T): item is NonNullable<T> {
Expand Down Expand Up @@ -122,15 +122,15 @@ export const SearchResultsView: FC<{
title={t('search.results.blocks.title')}
results={searchQueries.emeraldBlockHeight.results}
resultComponent={item => <BlockDetailView isLoading={false} block={item} />}
link={item => RouteUtils.getBlockRoute(item.round, Layer.Emerald)}
link={item => RouteUtils.getBlockRoute(item.round, Layer.emerald)}
linkLabel={t('search.results.blocks.viewLink')}
></ResultsGroup>

<ResultsGroup
title={t('search.results.transactions.title')}
results={searchQueries.emeraldTxHash.results}
resultComponent={item => <TransactionDetailView isLoading={false} transaction={item} />}
link={item => RouteUtils.getTransactionRoute(item.hash, Layer.Emerald)}
link={item => RouteUtils.getTransactionRoute(item.hash, Layer.emerald)}
linkLabel={t('search.results.transactions.viewLink')}
></ResultsGroup>

Expand All @@ -143,7 +143,7 @@ export const SearchResultsView: FC<{
resultComponent={item => (
<AccountDetailsView isLoading={false} account={item} roseFiatValue={roseFiatValue} />
)}
link={item => RouteUtils.getAccountRoute(item.address, Layer.Emerald)}
link={item => RouteUtils.getAccountRoute(item.address, Layer.emerald)}
linkLabel={t('search.results.accounts.viewLink')}
></ResultsGroup>
</>
Expand Down
1 change: 1 addition & 0 deletions src/app/utils/test-fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ export const suggestedParsedAccount: RuntimeAccount = {
total_received: '0',
total_sent: '0',
},
layer: 'emerald',
}

0 comments on commit b111c70

Please sign in to comment.