Skip to content

Commit 535508a

Browse files
committed
fix: few code smells
1 parent b5d969b commit 535508a

File tree

3 files changed

+22
-26
lines changed

3 files changed

+22
-26
lines changed

subgraph/core/src/KlerosCore.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { updateJurorStake } from "./entities/JurorTokensPerCourt";
3030
import { createDrawFromEvent } from "./entities/Draw";
3131
import { updateTokenAndEthShiftFromEvent } from "./entities/TokenAndEthShift";
3232
import { updateArbitrableCases } from "./entities/Arbitrable";
33-
import { ClassicVote, Counter, Court, Dispute, Draw, Round, User } from "../generated/schema";
33+
import { ClassicVote, Court, Dispute, Draw, Round, User } from "../generated/schema";
3434
import { BigInt } from "@graphprotocol/graph-ts";
3535
import { updatePenalty } from "./entities/Penalty";
3636
import { ensureFeeToken } from "./entities/FeeToken";

web/src/components/JurorsLeaderboardButton.tsx

+6-8
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ import { InternalLink } from "./InternalLink";
77

88
const JurorsLeaderboardButton: React.FC = () => {
99
return (
10-
<>
11-
<InternalLink to={"/jurors/1/desc/all"}>
12-
<BlueIconTextButtonContainer>
13-
<RankingIcon />
14-
Jurors Leaderboard
15-
</BlueIconTextButtonContainer>
16-
</InternalLink>
17-
</>
10+
<InternalLink to={"/jurors/1/desc/all"}>
11+
<BlueIconTextButtonContainer>
12+
<RankingIcon />
13+
Jurors Leaderboard
14+
</BlueIconTextButtonContainer>
15+
</InternalLink>
1816
);
1917
};
2018

web/src/pages/Jurors/DisplayJurors.tsx

+15-17
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,21 @@ const DisplayJurors: React.FC<IDisplayJurors> = ({ totalLeaderboardJurors }) =>
8080
)}
8181
</>
8282
) : (
83-
<>
84-
<ListContainer>
85-
{!isUndefined(jurors) && jurors.length === 0 ? (
86-
<StyledLabel>No jurors found</StyledLabel>
87-
) : (
88-
<>
89-
<Header />
90-
{!isUndefined(jurors)
91-
? jurors.map((juror) => <JurorCard key={juror.id} address={juror.id} {...juror} />)
92-
: [...Array(jurorsPerPage)].map((_, i) => <SkeletonDisputeListItem key={i} />)}
93-
{!searchValue && (
94-
<StyledPagination currentPage={currentPage} numPages={totalPages} callback={handlePageChange} />
95-
)}
96-
</>
97-
)}
98-
</ListContainer>
99-
</>
83+
<ListContainer>
84+
{!isUndefined(jurors) && jurors.length === 0 ? (
85+
<StyledLabel>No jurors found</StyledLabel>
86+
) : (
87+
<>
88+
<Header />
89+
{!isUndefined(jurors)
90+
? jurors.map((juror) => <JurorCard key={juror.id} address={juror.id} {...juror} />)
91+
: [...Array(jurorsPerPage)].map((_, i) => <SkeletonDisputeListItem key={i} />)}
92+
{!searchValue && (
93+
<StyledPagination currentPage={currentPage} numPages={totalPages} callback={handlePageChange} />
94+
)}
95+
</>
96+
)}
97+
</ListContainer>
10098
)}
10199
</>
102100
);

0 commit comments

Comments
 (0)