11import React , { useMemo } from "react" ;
22import styled , { css } from "styled-components" ;
33
4+ import { landscapeStyle } from "styles/landscapeStyle" ;
5+ import { responsiveSize } from "styles/responsiveSize" ;
6+
47import Identicon from "react-identicons" ;
58import ReactMarkdown from "react-markdown" ;
6- import { Link } from "react-router-dom" ;
79
810import { Card } from "@kleros/ui-components-library" ;
911
@@ -16,8 +18,8 @@ import { shortenAddress } from "utils/shortenAddress";
1618
1719import { type Evidence } from "src/graphql/graphql" ;
1820
19- import { landscapeStyle } from "styles/landscapeStyle " ;
20- import { responsiveSize } from "styles/responsiveSize " ;
21+ import { ExternalLink } from "./ExternalLink " ;
22+ import { InternalLink } from "./InternalLink " ;
2123
2224const StyledCard = styled ( Card ) `
2325 width: 100%;
@@ -106,7 +108,7 @@ const LeftContent = styled.div`
106108const HoverStyle = css `
107109 :hover {
108110 text-decoration: underline;
109- color: ${ ( { theme } ) => theme . secondaryBlue } ;
111+ color: ${ ( { theme } ) => theme . primaryBlue } ;
110112 cursor: pointer;
111113 }
112114` ;
@@ -138,7 +140,7 @@ const MobileText = styled.span`
138140 ) }
139141` ;
140142
141- const StyledLink = styled ( Link ) `
143+ const StyledInternalLink = styled ( InternalLink ) `
142144 display: flex;
143145 gap: ${ responsiveSize ( 5 , 6 ) } ;
144146 > svg {
@@ -204,20 +206,20 @@ const EvidenceCard: React.FC<IEvidenceCard> = ({
204206 < LeftContent >
205207 < AccountContainer >
206208 < Identicon size = "24" string = { sender } />
207- < StyledLink to = { addressExplorerLink } rel = "noopener noreferrer" target = "_blank" >
209+ < ExternalLink to = { addressExplorerLink } rel = "noopener noreferrer" target = "_blank" >
208210 < Address > { shortenAddress ( sender ) } </ Address >
209- </ StyledLink >
211+ </ ExternalLink >
210212 </ AccountContainer >
211- < StyledLink to = { transactionExplorerLink } rel = "noopener noreferrer" target = "_blank" >
213+ < ExternalLink to = { transactionExplorerLink } rel = "noopener noreferrer" target = "_blank" >
212214 < Timestamp > { formatDate ( Number ( timestamp ) , true ) } </ Timestamp >
213- </ StyledLink >
215+ </ ExternalLink >
214216 </ LeftContent >
215217 { fileURI && fileURI !== "-" ? (
216218 < FileLinkContainer >
217- < StyledLink to = { `attachment/?url=${ getIpfsUrl ( fileURI ) } ` } >
219+ < StyledInternalLink to = { `attachment/?url=${ getIpfsUrl ( fileURI ) } ` } >
218220 < AttachmentIcon />
219221 < AttachedFileText />
220- </ StyledLink >
222+ </ StyledInternalLink >
221223 </ FileLinkContainer >
222224 ) : null }
223225 </ BottomShade >
0 commit comments