@@ -8,12 +8,12 @@ import { _TimelineItem1, CustomTimeline } from "@kleros/ui-components-library";
8
8
9
9
import CalendarIcon from "svgs/icons/calendar.svg" ;
10
10
import ClosedCaseIcon from "svgs/icons/check-circle-outline.svg" ;
11
+ import NewTabIcon from "svgs/icons/new-tab.svg" ;
11
12
12
13
import { Periods } from "consts/periods" ;
13
14
import { usePopulatedDisputeData } from "hooks/queries/usePopulatedDisputeData" ;
14
15
import { getLocalRounds } from "utils/getLocalRounds" ;
15
16
import { getVoteChoice } from "utils/getVoteChoice" ;
16
- import { shortenTxnHash } from "utils/shortenAddress" ;
17
17
18
18
import { DisputeDetailsQuery , useDisputeDetailsQuery } from "queries/useDisputeDetailsQuery" ;
19
19
import { useVotingHistory } from "queries/useVotingHistory" ;
@@ -55,13 +55,15 @@ const StyledCalendarIcon = styled(CalendarIcon)`
55
55
height: 14px;
56
56
` ;
57
57
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
+ }
65
67
}
66
68
` ;
67
69
@@ -138,16 +140,9 @@ const useItems = (disputeDetails?: DisputeDetailsQuery, arbitrable?: `0x${string
138
140
{
139
141
title : "Dispute created" ,
140
142
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 >
151
146
) ,
152
147
subtitle : formatDate ( votingHistory ?. dispute ?. createdAt ) ,
153
148
rightSided : true ,
0 commit comments