File tree Expand file tree Collapse file tree 7 files changed +10
-10
lines changed
web/src/pages/Courts/CourtDetails Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const Header: React.FC = () => {
24
24
return (
25
25
< Container >
26
26
< StyledLabel > Juror</ StyledLabel >
27
- < StyledLabel > Stake </ StyledLabel >
27
+ < StyledLabel > PNK Staked </ StyledLabel >
28
28
</ Container >
29
29
) ;
30
30
} ;
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const PER_PAGE = 30;
34
34
const DisplayJurors : React . FC = ( ) => {
35
35
const { id : courtId , order } = useParams ( ) ;
36
36
const [ searchParams ] = useSearchParams ( ) ;
37
- const searchValue = searchParams . get ( "topSearch " ) ?? "" ;
37
+ const searchValue = searchParams . get ( "jurorStakedSearch " ) ?? "" ;
38
38
const [ page , setPage ] = useState ( 0 ) ;
39
39
const skip = page * PER_PAGE ;
40
40
const { data, isFetching } = useTopStakedJurorsByCourt (
Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ const Search: React.FC = () => {
29
29
const [ searchParams ] = useSearchParams ( ) ;
30
30
const navigate = useNavigate ( ) ;
31
31
const { pathname } = useLocation ( ) ;
32
- const initial = searchParams . get ( "topSearch " ) ?? "" ;
32
+ const initial = searchParams . get ( "jurorStakedSearch " ) ?? "" ;
33
33
const [ value , setValue ] = useState ( initial ) ;
34
34
useDebounce (
35
35
( ) => {
36
36
const params = new URLSearchParams ( searchParams ) ;
37
37
if ( isEmpty ( value ) ) {
38
- params . delete ( "topSearch " ) ;
38
+ params . delete ( "jurorStakedSearch " ) ;
39
39
} else {
40
- params . set ( "topSearch " , value ) ;
40
+ params . set ( "jurorStakedSearch " , value ) ;
41
41
}
42
42
navigate ( `${ pathname } ?${ params . toString ( ) } ` , { replace : true } ) ;
43
43
} ,
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ const Title = styled.h1`
15
15
font-size: ${ responsiveSize ( 20 , 24 ) } ;
16
16
` ;
17
17
18
- const TopJurorsStakedByCourt : React . FC < { courtName : string | undefined } > = ( { courtName } ) => {
18
+ const JurorsStakedByCourt : React . FC < { courtName : string | undefined } > = ( { courtName } ) => {
19
19
return (
20
20
< Container >
21
21
< Title >
22
- Top Jurors Staked in { courtName }
22
+ Jurors Staked in { courtName }
23
23
{ courtName ?. toLowerCase ( ) . endsWith ( "court" ) || courtName ?. toLowerCase ( ) . startsWith ( "corte" ) ? null : " Court" }
24
24
</ Title >
25
25
< Search />
@@ -28,4 +28,4 @@ const TopJurorsStakedByCourt: React.FC<{ courtName: string | undefined }> = ({ c
28
28
) ;
29
29
} ;
30
30
31
- export default TopJurorsStakedByCourt ;
31
+ export default JurorsStakedByCourt ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import Description from "./Description";
25
25
import StakePanel from "./StakePanel" ;
26
26
import Stats from "./Stats" ;
27
27
import TopSearch from "./TopSearch" ;
28
- import TopJurorsStakedByCourt from "./TopJurorsStakedByCourt " ;
28
+ import JurorsStakedByCourt from "./JurorsStakedByCourt " ;
29
29
30
30
const Container = styled . div `` ;
31
31
@@ -148,7 +148,7 @@ const CourtDetails: React.FC = () => {
148
148
< Description />
149
149
</ StyledCard >
150
150
< LatestCases filters = { { court : id } } />
151
- < TopJurorsStakedByCourt { ...{ courtName } } />
151
+ < JurorsStakedByCourt { ...{ courtName } } />
152
152
< ScrollTop />
153
153
</ Container >
154
154
) ;
You can’t perform that action at this time.
0 commit comments