Skip to content

Commit

Permalink
Replace DisplayAddress with DisplayTransaction in TransferRow component
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Jan 10, 2025
1 parent 6a08e05 commit 82ced6e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/DAOTreasury/components/Transactions.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { Box, Button, Center, Flex, HStack, Icon, Image, Text } from '@chakra-ui/react';
import { ArrowDown, ArrowUp } from '@phosphor-icons/react';
import { useTranslation } from 'react-i18next';
import { getAddress } from 'viem';
import { useDateTimeDisplay } from '../../../helpers/dateTime';
import { useFractal } from '../../../providers/App/AppProvider';
import { useNetworkConfigStore } from '../../../providers/NetworkConfig/useNetworkConfigStore';
import { useDaoInfoStore } from '../../../store/daoInfo/useDaoInfoStore';
import { TokenEventType, TransferDisplayData, TransferType } from '../../../types';
import { DecentTooltip } from '../../ui/DecentTooltip';
import { DisplayAddress } from '../../ui/links/DisplayAddress';
import DisplayTransaction from '../../ui/links/DisplayTransaction';
import EtherscanLink from '../../ui/links/EtherscanLink';
import { BarLoader } from '../../ui/loaders/BarLoader';

Expand Down Expand Up @@ -97,12 +96,12 @@ function TransferRow({ displayData }: { displayData: TransferDisplayData }) {
<HStack
w="40%"
justifyContent="flex-end"
textAlign="end"
onClick={e => e.stopPropagation()}
>
<DisplayAddress
<DisplayTransaction
data-testid="link-transfer-address"
address={getAddress(displayData.transferAddress)}
textAlign="end"
onClick={e => e.stopPropagation()}
txHash={displayData.transactionHash}
/>
</HStack>
</HStack>
Expand Down

0 comments on commit 82ced6e

Please sign in to comment.