Skip to content

Commit

Permalink
Replace chain type for BlockExplorerLink
Browse files Browse the repository at this point in the history
  • Loading branch information
kpyszkowski committed May 14, 2024
1 parent ac0d6ec commit a6bf6c7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions dapp/src/components/shared/ActivitiesList/ActivitiesListItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import { LoadingSpinnerSuccessIcon } from "#/assets/icons"
import { ArrowUpRight, LoadingSpinnerSuccessIcon } from "#/assets/icons"
import { Activity as ActivityType } from "#/types"
import {
Alert,
Expand All @@ -13,7 +13,6 @@ import {
VStack,
VisuallyHidden,
} from "@chakra-ui/react"
import ButtonLink from "../ButtonLink"
import { CurrencyBalance } from "../CurrencyBalance"
import Spinner from "../Spinner"
import BlockExplorerLink from "../BlockExplorerLink"
Expand Down Expand Up @@ -67,26 +66,25 @@ function ActivitiesListItem(props: ActivitiesListItemProps) {
</VStack>

{txHash && (
<ButtonLink
as={BlockExplorerLink}
<BlockExplorerLink
id={txHash}
chain="bitcoin"
type="transaction"
display="flex"
my={-4}
ml={6}
mr={-6}
h="auto"
alignSelf="stretch"
variant="unstyled"
borderLeftWidth={1}
borderColor="inherit"
rounded={0}
px={4}
py={5}
iconSpacing={0}
iconColor="grey.500"
>
<ArrowUpRight color="gray.500" boxSize={4} alignSelf="center" />
<VisuallyHidden>View transaction details</VisuallyHidden>
</ButtonLink>
</BlockExplorerLink>
)}
</Alert>
)
Expand Down

0 comments on commit a6bf6c7

Please sign in to comment.