Skip to content

Commit

Permalink
Fix prime
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenshively committed Jun 3, 2024
1 parent 44ec7a7 commit 184d377
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions prime/src/components/borrow/MarginAccountHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import RoundedBadge, { BADGE_TEXT_COLOR } from 'shared/lib/components/common/Rou
import { Display } from 'shared/lib/components/common/Typography';
import { Token } from 'shared/lib/data/Token';
import useChain from 'shared/lib/hooks/UseChain';
import { getEtherscanUrlForChain } from 'shared/lib/util/Chains';
import { getBlockExplorerUrl } from 'shared/lib/util/Chains';
import styled from 'styled-components';
import tw from 'twin.macro';

Expand Down Expand Up @@ -84,7 +84,7 @@ export type MarginAccountHeaderProps = {

export default function MarginAccountHeader(props: MarginAccountHeaderProps) {
const activeChain = useChain();
const baseEtherscanUrl = getEtherscanUrlForChain(activeChain);
const baseEtherscanUrl = getBlockExplorerUrl(activeChain);
return (
<Wrapper>
<MarginPairContainer>
Expand Down
4 changes: 2 additions & 2 deletions prime/src/components/borrow/modal/PendingTxnModal.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LoadingModal, MESSAGE_TEXT_COLOR } from 'shared/lib/components/common/Modal';
import { Text } from 'shared/lib/components/common/Typography';
import useChain from 'shared/lib/hooks/UseChain';
import { getEtherscanUrlForChain } from 'shared/lib/util/Chains';
import { getBlockExplorerUrl } from 'shared/lib/util/Chains';

export type PendingTxnModalProps = {
open: boolean;
Expand All @@ -19,7 +19,7 @@ export default function PendingTxnModal(props: PendingTxnModalProps) {
{props.txnHash && (
<Text size='M' weight='medium' color={MESSAGE_TEXT_COLOR}>
<a
href={`${getEtherscanUrlForChain(activeChain)}/tx/${props.txnHash}`}
href={`${getBlockExplorerUrl(activeChain)}/tx/${props.txnHash}`}
target='_blank'
rel='noopener noreferrer'
className='underline'
Expand Down

0 comments on commit 184d377

Please sign in to comment.