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 = () => {
2424 return (
2525 < Container >
2626 < StyledLabel > Juror</ StyledLabel >
27- < StyledLabel > Stake </ StyledLabel >
27+ < StyledLabel > PNK Staked </ StyledLabel >
2828 </ Container >
2929 ) ;
3030} ;
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;
3434const DisplayJurors : React . FC = ( ) => {
3535 const { id : courtId , order } = useParams ( ) ;
3636 const [ searchParams ] = useSearchParams ( ) ;
37- const searchValue = searchParams . get ( "topSearch " ) ?? "" ;
37+ const searchValue = searchParams . get ( "jurorStakedSearch " ) ?? "" ;
3838 const [ page , setPage ] = useState ( 0 ) ;
3939 const skip = page * PER_PAGE ;
4040 const { data, isFetching } = useTopStakedJurorsByCourt (
Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ const Search: React.FC = () => {
2929 const [ searchParams ] = useSearchParams ( ) ;
3030 const navigate = useNavigate ( ) ;
3131 const { pathname } = useLocation ( ) ;
32- const initial = searchParams . get ( "topSearch " ) ?? "" ;
32+ const initial = searchParams . get ( "jurorStakedSearch " ) ?? "" ;
3333 const [ value , setValue ] = useState ( initial ) ;
3434 useDebounce (
3535 ( ) => {
3636 const params = new URLSearchParams ( searchParams ) ;
3737 if ( isEmpty ( value ) ) {
38- params . delete ( "topSearch " ) ;
38+ params . delete ( "jurorStakedSearch " ) ;
3939 } else {
40- params . set ( "topSearch " , value ) ;
40+ params . set ( "jurorStakedSearch " , value ) ;
4141 }
4242 navigate ( `${ pathname } ?${ params . toString ( ) } ` , { replace : true } ) ;
4343 } ,
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ const Title = styled.h1`
1515 font-size: ${ responsiveSize ( 20 , 24 ) } ;
1616` ;
1717
18- const TopJurorsStakedByCourt : React . FC < { courtName : string | undefined } > = ( { courtName } ) => {
18+ const JurorsStakedByCourt : React . FC < { courtName : string | undefined } > = ( { courtName } ) => {
1919 return (
2020 < Container >
2121 < Title >
22- Top Jurors Staked in { courtName }
22+ Jurors Staked in { courtName }
2323 { courtName ?. toLowerCase ( ) . endsWith ( "court" ) || courtName ?. toLowerCase ( ) . startsWith ( "corte" ) ? null : " Court" }
2424 </ Title >
2525 < Search />
@@ -28,4 +28,4 @@ const TopJurorsStakedByCourt: React.FC<{ courtName: string | undefined }> = ({ c
2828 ) ;
2929} ;
3030
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";
2525import StakePanel from "./StakePanel" ;
2626import Stats from "./Stats" ;
2727import TopSearch from "./TopSearch" ;
28- import TopJurorsStakedByCourt from "./TopJurorsStakedByCourt " ;
28+ import JurorsStakedByCourt from "./JurorsStakedByCourt " ;
2929
3030const Container = styled . div `` ;
3131
@@ -148,7 +148,7 @@ const CourtDetails: React.FC = () => {
148148 < Description />
149149 </ StyledCard >
150150 < LatestCases filters = { { court : id } } />
151- < TopJurorsStakedByCourt { ...{ courtName } } />
151+ < JurorsStakedByCourt { ...{ courtName } } />
152152 < ScrollTop />
153153 </ Container >
154154 ) ;
You can’t perform that action at this time.
0 commit comments