@@ -8,12 +8,12 @@ import { _TimelineItem1, CustomTimeline } from "@kleros/ui-components-library";
88
99import CalendarIcon from "svgs/icons/calendar.svg" ;
1010import ClosedCaseIcon from "svgs/icons/check-circle-outline.svg" ;
11+ import NewTabIcon from "svgs/icons/new-tab.svg" ;
1112
1213import { Periods } from "consts/periods" ;
1314import { usePopulatedDisputeData } from "hooks/queries/usePopulatedDisputeData" ;
1415import { getLocalRounds } from "utils/getLocalRounds" ;
1516import { getVoteChoice } from "utils/getVoteChoice" ;
16- import { shortenTxnHash } from "utils/shortenAddress" ;
1717
1818import { DisputeDetailsQuery , useDisputeDetailsQuery } from "queries/useDisputeDetailsQuery" ;
1919import { useVotingHistory } from "queries/useVotingHistory" ;
@@ -55,13 +55,15 @@ const StyledCalendarIcon = styled(CalendarIcon)`
5555 height: 14px;
5656` ;
5757
58- const LinkContainer = styled . div `
59- display: flex;
60- gap: 4px;
61- align-items: center;
62- span {
63- font-size: 14px;
64- color: ${ ( { theme } ) => theme . primaryText } ;
58+ const StyledNewTabIcon = styled ( NewTabIcon ) `
59+ margin-bottom: 2px;
60+ path {
61+ fill: ${ ( { theme } ) => theme . primaryBlue } ;
62+ }
63+ :hover {
64+ path {
65+ fill: ${ ( { theme } ) => theme . secondaryBlue } ;
66+ }
6567 }
6668` ;
6769
@@ -138,16 +140,9 @@ const useItems = (disputeDetails?: DisputeDetailsQuery, arbitrable?: `0x${string
138140 {
139141 title : "Dispute created" ,
140142 party : (
141- < LinkContainer >
142- < span > at</ span >
143- < ExternalLink to = { txnExplorerLink } rel = "noopener noreferrer" target = "_blank" >
144- { votingHistory ?. dispute ?. transactionHash ? (
145- shortenTxnHash ( votingHistory ?. dispute ?. transactionHash )
146- ) : (
147- < Skeleton height = { 16 } width = { 56 } />
148- ) }
149- </ ExternalLink >
150- </ LinkContainer >
143+ < ExternalLink to = { txnExplorerLink } rel = "noopener noreferrer" target = "_blank" >
144+ < StyledNewTabIcon />
145+ </ ExternalLink >
151146 ) ,
152147 subtitle : formatDate ( votingHistory ?. dispute ?. createdAt ) ,
153148 rightSided : true ,
0 commit comments