From 9477b0954d807305c559975508c4c4528b41e034 Mon Sep 17 00:00:00 2001 From: Karelian Pie Date: Sun, 24 Sep 2023 10:42:16 +0300 Subject: [PATCH] refactor: Use chain icon --- apps/common/components/ListHead.tsx | 2 +- pages/vaults/index.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/common/components/ListHead.tsx b/apps/common/components/ListHead.tsx index 29fdf4750..4a83351a2 100644 --- a/apps/common/components/ListHead.tsx +++ b/apps/common/components/ListHead.tsx @@ -7,7 +7,7 @@ import type {TSortDirection} from '@common/types/types'; export type TListHead = { items: { - label: string, + label: string | ReactElement, value: string, sortable?: boolean, className?: string diff --git a/pages/vaults/index.tsx b/pages/vaults/index.tsx index 699844dc9..6905ab7e8 100644 --- a/pages/vaults/index.tsx +++ b/pages/vaults/index.tsx @@ -14,6 +14,7 @@ import {Renderable} from '@yearn-finance/web-lib/components/Renderable'; import {useWeb3} from '@yearn-finance/web-lib/contexts/useWeb3'; import {useChainID} from '@yearn-finance/web-lib/hooks/useChainID'; import {useSessionStorage} from '@yearn-finance/web-lib/hooks/useSessionStorage'; +import {IconChain} from '@yearn-finance/web-lib/icons/IconChain'; import {toAddress} from '@yearn-finance/web-lib/utils/address'; import {toBigInt} from '@yearn-finance/web-lib/utils/format.bigNumber'; import {formatAmount} from '@yearn-finance/web-lib/utils/format.number'; @@ -346,7 +347,7 @@ function Index(): ReactElement { sortDirection={sort.sortDirection} onSort={onSort} items={[ - {label: '🔗', value: 'name', sortable: false, className: 'col-span-1'}, + {label: , value: 'name', sortable: false, className: 'col-span-1'}, {label: 'Token', value: 'name', sortable: true}, {label: 'APY', value: 'apy', sortable: true, className: 'col-span-2'}, {label: 'Available', value: 'available', sortable: true, className: 'col-span-2'},