Skip to content

Commit

Permalink
use copyable address component
Browse files Browse the repository at this point in the history
  • Loading branch information
FBalint committed Jan 21, 2025
1 parent 2cae3bd commit f6455bf
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CopyableAddress } from "@/components/CopyableAddress"
import { purchaseHistoryDrawerAtom } from "@/components/Providers/atoms"
import { Button } from "@/components/ui/Button"
import {
Expand All @@ -21,7 +22,6 @@ import { useFetcherWithSign } from "hooks/useFetcherWithSign"
import useShowErrorToast from "hooks/useShowErrorToast"
import { useAtom } from "jotai"
import { useEffect } from "react"
import shortenHex from "utils/shortenHex"
import { useAccount } from "wagmi"

export const PurchaseHistoryDrawer = () => {
Expand Down Expand Up @@ -111,7 +111,9 @@ export const PurchaseHistoryDrawer = () => {
<TableCell>
{new Date(receipt.createdAt).toLocaleDateString()}
</TableCell>
<TableCell>{shortenHex(receipt.paymentAddress)}</TableCell>
<TableCell>
<CopyableAddress address={receipt.paymentAddress} />
</TableCell>
</TableRow>
))}
</TableBody>
Expand Down

0 comments on commit f6455bf

Please sign in to comment.