11import React , { useMemo } from "react" ;
22import styled , { css } from "styled-components" ;
33
4- import { Link } from "react-router-dom" ;
5-
64import LawBalanceIcon from "svgs/icons/law-balance.svg" ;
75
8- import { useScrollTop } from "hooks/useScrollTop" ;
96import { useCourtTree } from "hooks/queries/useCourtTree" ;
107
118import { landscapeStyle } from "styles/landscapeStyle" ;
@@ -67,19 +64,6 @@ const StyledField = styled(Field)`
6764 }
6865` ;
6966
70- const StyledLink = styled ( Link ) `
71- width: 100%;
72- :hover {
73- label {
74- &.value {
75- cursor: pointer;
76- color: ${ ( { theme } ) => theme . primaryBlue } ;
77- text-decoration: underline;
78- }
79- }
80- }
81- ` ;
82-
8367type IDisputeInfoCard = { fieldItems : FieldItem [ ] } & IDisputeInfo ;
8468
8569const DisputeInfoCard : React . FC < IDisputeInfoCard > = ( {
@@ -91,7 +75,6 @@ const DisputeInfoCard: React.FC<IDisputeInfoCard> = ({
9175 disputeID,
9276 round,
9377} ) => {
94- const scrollTop = useScrollTop ( ) ;
9578 const { data } = useCourtTree ( ) ;
9679 const courtPath = getCourtsPath ( data ?. court , courtId ) ;
9780 const items = useMemo (
@@ -104,9 +87,13 @@ const DisputeInfoCard: React.FC<IDisputeInfoCard> = ({
10487 < Container >
10588 { court && courtId && isOverview && (
10689 < CourtBranchFieldContainer >
107- < StyledLink to = { `/courts/${ courtId } ` } onClick = { ( ) => scrollTop ( ) } >
108- < StyledField icon = { LawBalanceIcon } name = "Court Branch" value = { courtBranchValue } { ...{ isOverview } } />
109- </ StyledLink >
90+ < StyledField
91+ link = { `/courts/${ courtId } ` }
92+ icon = { LawBalanceIcon }
93+ name = "Court Branch"
94+ value = { courtBranchValue }
95+ { ...{ isOverview } }
96+ />
11097 </ CourtBranchFieldContainer >
11198 ) }
11299 < RestOfFieldsContainer { ...{ isOverview } } >
0 commit comments