File tree Expand file tree Collapse file tree 1 file changed +19
-15
lines changed
Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,6 @@ const FieldContainer = styled.div<FieldContainerProps>`
2323 width: 14px;
2424 }
2525
26- .link {
27- color: ${ ( { theme } ) => theme . primaryBlue } ;
28- :hover {
29- cursor: pointer;
30- }
31- }
3226 ${ ( { isList } ) =>
3327 isList &&
3428 css `
@@ -62,6 +56,15 @@ const FieldContainer = styled.div<FieldContainerProps>`
6256 ` } ;
6357` ;
6458
59+ const LinkContainer = styled . div `
60+ display: flex;
61+ justify-content: end;
62+ ` ;
63+
64+ const StyledLink = styled ( Link ) `
65+ color: ${ ( { theme } ) => theme . primaryBlue } ;
66+ ` ;
67+
6568type FieldContainerProps = {
6669 width ?: string ;
6770 isList ?: boolean ;
@@ -97,15 +100,16 @@ const Field: React.FC<IField> = ({
97100 < Icon />
98101 { ( ! displayAsList || isOverview || isJurorBalance ) && < label > { name } :</ label > }
99102 { link ? (
100- < Link
101- className = "link value"
102- to = { link }
103- onClick = { ( event ) => {
104- event . stopPropagation ( ) ;
105- } }
106- >
107- { value }
108- </ Link >
103+ < LinkContainer className = "value" >
104+ < StyledLink
105+ to = { link }
106+ onClick = { ( event ) => {
107+ event . stopPropagation ( ) ;
108+ } }
109+ >
110+ { value }
111+ </ StyledLink >
112+ </ LinkContainer >
109113 ) : (
110114 < label className = "value" > { value } </ label >
111115 ) }
You can’t perform that action at this time.
0 commit comments