diff --git a/centrifuge-app/src/components/PoolFilter/SortButton.tsx b/centrifuge-app/src/components/PoolFilter/SortButton.tsx index 4dc5474300..44af2f4c7c 100644 --- a/centrifuge-app/src/components/PoolFilter/SortButton.tsx +++ b/centrifuge-app/src/components/PoolFilter/SortButton.tsx @@ -4,10 +4,11 @@ import { useHistory, useLocation } from 'react-router-dom' import { FilterButton } from '../FilterButton' import { SortChevrons } from '../SortChevrons' import { SEARCH_KEYS } from './config' +import { SortBy } from './types' export type SortButtonProps = { label: string - searchKey: string + searchKey: SortBy tooltip?: string justifySelf?: 'start' | 'end' } diff --git a/centrifuge-app/src/components/Portfolio/Transactions.tsx b/centrifuge-app/src/components/Portfolio/Transactions.tsx index 7fa8831cc1..3f83842cf3 100644 --- a/centrifuge-app/src/components/Portfolio/Transactions.tsx +++ b/centrifuge-app/src/components/Portfolio/Transactions.tsx @@ -7,7 +7,7 @@ import { } from '@centrifuge/centrifuge-js' import { formatBalance, useCentrifugeUtils } from '@centrifuge/centrifuge-react' import { Box, Grid, IconExternalLink, Stack, Text } from '@centrifuge/fabric' -import { isAddress as isValidEVMAddress } from '@ethersproject/address' +import * as React from 'react' import { Link } from 'react-router-dom' import { formatDate } from '../../utils/date' import { useAddress } from '../../utils/useAddress' @@ -66,7 +66,7 @@ const formatters = { export function Transactions({ count }: AddressTransactionsProps) { const { formatAddress } = useCentrifugeUtils() const address = useAddress() - const formattedAddress = address && isValidEVMAddress(address) ? address : formatAddress(address || '') + const formattedAddress = formatAddress(address || '') const allTransactions = useAllTransactions(formattedAddress) const formattedTransactions: TransactionCardProps[] = []