Skip to content

Commit

Permalink
Remove unnecessary props
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Jan 19, 2024
1 parent 1eae36a commit d48900a
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@ import SimpleText from "./SimpleText"

function BlockExplorer({ txHash, chain }: { txHash?: string; chain: Chain }) {
if (txHash) {
return (
<ViewInBlockExplorer
id={txHash}
type="transaction"
chain={chain}
size="sm"
/>
)
return <ViewInBlockExplorer id={txHash} type="transaction" chain={chain} />
}
return <SimpleText color="grey.400">{BLOCK_EXPLORER[chain].title}</SimpleText>
}
Expand Down

0 comments on commit d48900a

Please sign in to comment.