Skip to content

Commit 3b00a2c

Browse files
authored
Merge pull request #1047 from kleros/refactor(web)/binary-to-classic
refactor(web): binary-to-classic
2 parents eb8d2d5 + 76404b1 commit 3b00a2c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

web/src/pages/Cases/CaseDetails/Voting/Binary.tsx renamed to web/src/pages/Cases/CaseDetails/Voting/Classic.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const RefuseToArbitrateContainer = styled.div`
4444
justify-content: center;
4545
`;
4646

47-
const Binary: React.FC<{ arbitrable: `0x${string}`; voteIDs: string[] }> = ({ arbitrable, voteIDs }) => {
47+
const Classic: React.FC<{ arbitrable: `0x${string}`; voteIDs: string[] }> = ({ arbitrable, voteIDs }) => {
4848
const { id } = useParams();
4949
const parsedDisputeID = BigInt(id ?? 0);
5050
const parsedVoteIDs = useMemo(() => voteIDs.map((voteID) => BigInt(voteID)), [voteIDs]);
@@ -122,4 +122,4 @@ const Binary: React.FC<{ arbitrable: `0x${string}`; voteIDs: string[] }> = ({ ar
122122
);
123123
};
124124

125-
export default Binary;
125+
export default Classic;

web/src/pages/Cases/CaseDetails/Voting/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useParams } from "react-router-dom";
33
import { useAccount } from "wagmi";
44
import { useDisputeDetailsQuery } from "queries/useDisputeDetailsQuery";
55
import { useDrawQuery } from "queries/useDrawQuery";
6-
import Binary from "./Binary";
6+
import Classic from "./Classic";
77
import VotingHistory from "./VotingHistory";
88
import { Periods } from "consts/periods";
99
import { isUndefined } from "utils/index";
@@ -29,7 +29,7 @@ const Voting: React.FC<{
2929
currentPeriodIndex === Periods.vote &&
3030
drawData.draws?.length > 0 &&
3131
!voted ? (
32-
<Binary {...{ arbitrable }} voteIDs={drawData.draws.map((draw) => draw.voteID)} />
32+
<Classic {...{ arbitrable }} voteIDs={drawData.draws.map((draw) => draw.voteID)} />
3333
) : (
3434
<VotingHistory {...{ arbitrable }} />
3535
);

0 commit comments

Comments
 (0)