File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed
Expand file tree Collapse file tree 1 file changed +16
-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,12 @@ const FieldContainer = styled.div<FieldContainerProps>`
6256 ` } ;
6357` ;
6458
59+ const LinkContainer = styled . div `` ;
60+
61+ const StyledLink = styled ( Link ) `
62+ color: ${ ( { theme } ) => theme . primaryBlue } ;
63+ ` ;
64+
6565type FieldContainerProps = {
6666 width ?: string ;
6767 isList ?: boolean ;
@@ -97,15 +97,16 @@ const Field: React.FC<IField> = ({
9797 < Icon />
9898 { ( ! displayAsList || isOverview || isJurorBalance ) && < label > { name } :</ label > }
9999 { link ? (
100- < Link
101- className = "link value"
102- to = { link }
103- onClick = { ( event ) => {
104- event . stopPropagation ( ) ;
105- } }
106- >
107- { value }
108- </ Link >
100+ < LinkContainer className = "value" >
101+ < StyledLink
102+ to = { link }
103+ onClick = { ( event ) => {
104+ event . stopPropagation ( ) ;
105+ } }
106+ >
107+ { value }
108+ </ StyledLink >
109+ </ LinkContainer >
109110 ) : (
110111 < label className = "value" > { value } </ label >
111112 ) }
You can’t perform that action at this time.
0 commit comments