Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
874e1d1
feat(web): add dispute overview page and routing
alcercu Sep 21, 2022
def60d1
chore: update kleros ui components and add react skeleton
alcercu Sep 26, 2022
ba3c50b
feat(web, wip): add tabs to dispute details page
alcercu Sep 26, 2022
90ab2dc
feat(web, wip): add evidence tab to dispute details page
alcercu Sep 26, 2022
05140c7
feat(web, wip): improve evidence showing
alcercu Sep 27, 2022
53940b4
fix(web): fix current period index on disputes without hidden votes
alcercu Sep 27, 2022
9634539
feat(web, wip): add policy to dispute overview, fix voting bug
alcercu Sep 27, 2022
f450cb3
fix(web): fix broken links to court and dispute policy
alcercu Sep 27, 2022
ca0618f
chore(web): remove console.log
alcercu Sep 27, 2022
32d4e3e
fix(web): spelling mistake
alcercu Sep 27, 2022
8e070df
feat(web, wip): add details to dispute overview
alcercu Sep 27, 2022
f7e2252
fix(web): correctly check undefined on DisputeInfo for period
alcercu Sep 28, 2022
772c802
fix(web): allow undefined value for props Overview page
alcercu Sep 28, 2022
af0a355
feat(web): correctly set active tab when path changes
alcercu Sep 28, 2022
528caef
feat(web): add loading animation to switch chain page
alcercu Sep 28, 2022
13ea657
feat(web): implement refuse to arbitrate
alcercu Sep 28, 2022
ab390bf
feat(web): improve timeline titles and subtitles
alcercu Sep 28, 2022
06f0ca5
feat(web): add PNK contract to getContract
alcercu Sep 28, 2022
fac2d9e
fix(web): change court policy link
alcercu Sep 28, 2022
9e802ba
fix: lock file
jaybuidl Sep 30, 2022
13c781c
fix(Arbitration): small bug fixes
unknownunknown1 Sep 29, 2022
4b8bf63
chore(deps): bump actions/cache from 3.0.7 to 3.0.9
dependabot[bot] Sep 30, 2022
5c95929
chore(deps): bump @graphql-codegen/cli from 2.12.1 to 2.13.1
dependabot[bot] Sep 29, 2022
1f669b1
chore(deps): bump actions/setup-node from 3.4.1 to 3.5.0
dependabot[bot] Sep 28, 2022
e48795d
chore(deps-dev): bump @typescript-eslint/eslint-plugin
dependabot[bot] Sep 30, 2022
6a810b3
chore(deps): bump @graphprotocol/graph-cli from 0.33.1 to 0.34.0
dependabot[bot] Sep 27, 2022
a54034f
chore(deps-dev): bump hardhat from 2.10.1 to 2.11.2
dependabot[bot] Sep 15, 2022
a8fefcb
chore(deps-dev): bump eslint-plugin-react from 7.30.1 to 7.31.8
dependabot[bot] Sep 12, 2022
2140de0
chore(deps): bump actions/checkout from 2 to 3
dependabot[bot] Sep 7, 2022
97dc8a8
chore(deps-dev): bump hardhat-gas-reporter from 1.0.8 to 1.0.9
dependabot[bot] Sep 6, 2022
77438cf
chore(deps): bump aws-actions/setup-sam from 1 to 2
dependabot[bot] Sep 5, 2022
509877e
chore(deps): bump graphql-request from 4.3.0 to 5.0.0
dependabot[bot] Sep 23, 2022
89c22b7
chore(deps-dev): bump @typescript-eslint/parser from 5.38.0 to 5.38.1
dependabot[bot] Sep 30, 2022
05d88f6
chore(deps): bump actions/setup-python from 2 to 4
dependabot[bot] Sep 5, 2022
8b8702a
chore(deps-dev): bump @types/styled-components from 5.1.25 to 5.1.26
dependabot[bot] Aug 22, 2022
767caf8
chore(deps-dev): bump hardhat-watcher from 2.3.0 to 2.5.0
dependabot[bot] Sep 6, 2022
43c28b3
Merge branch 'dependabot/npm_and_yarn/types/styled-components-5.1.26'…
jaybuidl Sep 30, 2022
41d8847
Merge branch 'dependabot/github_actions/actions/setup-python-4' into …
jaybuidl Sep 30, 2022
ee203c9
Merge branch 'dependabot/npm_and_yarn/typescript-eslint/parser-5.38.1…
jaybuidl Sep 30, 2022
d2753be
fix: lock file
jaybuidl Sep 30, 2022
3397e3e
chore(deps-dev): bump @types/mocha from 9.1.1 to 10.0.0
dependabot[bot] Sep 30, 2022
83626c4
chore(deps): bump styled-components from 5.3.5 to 5.3.6
dependabot[bot] Sep 30, 2022
3950dca
chore(deps-dev): bump solidity-coverage from 0.7.22 to 0.8.2
dependabot[bot] Sep 30, 2022
1d2a713
chore(deps): bump actions/setup-node from 3.5.0 to 3.5.1
dependabot[bot] Oct 14, 2022
4e30631
chore(deps): bump actions/upload-artifact from 3.1.0 to 3.1.1
dependabot[bot] Oct 24, 2022
a5a24db
chore(deps-dev): bump @typescript-eslint/eslint-plugin
dependabot[bot] Oct 25, 2022
f43a279
chore(deps-dev): bump @typescript-eslint/parser from 5.38.1 to 5.41.0
dependabot[bot] Oct 25, 2022
991662a
chore(deps): bump actions/cache from 3.0.9 to 3.0.11
dependabot[bot] Oct 14, 2022
8c09e48
chore(deps): bump @graphql-codegen/cli from 2.13.1 to 2.13.7
dependabot[bot] Oct 14, 2022
4560034
chore(deps): bump @graphprotocol/graph-ts from 0.27.0 to 0.28.1
dependabot[bot] Oct 11, 2022
72696ec
chore(deps-dev): bump hardhat-deploy from 0.11.15 to 0.11.18
dependabot[bot] Oct 10, 2022
ed5c8ae
chore(deps-dev): bump dotenv from 16.0.2 to 16.0.3
dependabot[bot] Oct 7, 2022
8fe3b71
chore(deps): bump react-router-dom from 6.4.1 to 6.4.2
dependabot[bot] Oct 6, 2022
2e1951d
Merge remote-tracking branch 'origin/chore/patches' into dependabot/n…
jaybuidl Nov 2, 2022
a4f751d
Merge remote-tracking branch 'origin/chore/patches' into dependabot/n…
jaybuidl Nov 2, 2022
211eaeb
Merge remote-tracking branch 'origin/chore/patches' into dependabot/n…
jaybuidl Nov 2, 2022
023e858
Merge remote-tracking branch 'origin/chore/patches' into dependabot/g…
jaybuidl Nov 2, 2022
15f8b28
Merge remote-tracking branch 'origin/chore/patches' into dependabot/g…
jaybuidl Nov 2, 2022
cf427b1
Merge remote-tracking branch 'origin/chore/patches' into dependabot/n…
jaybuidl Nov 2, 2022
cbdd5cf
Merge branch 'dependabot/npm_and_yarn/styled-components-5.3.6' into c…
jaybuidl Nov 2, 2022
36aa59d
Merge branch 'dependabot/npm_and_yarn/solidity-coverage-0.8.2' into c…
jaybuidl Nov 2, 2022
ab9f5f8
Merge branch 'dependabot/github_actions/actions/setup-node-3.5.1' int…
jaybuidl Nov 2, 2022
b57c1b6
Merge branch 'dependabot/github_actions/actions/upload-artifact-3.1.1…
jaybuidl Nov 2, 2022
185b5ee
Merge branch 'dependabot/npm_and_yarn/typescript-eslint/eslint-plugin…
jaybuidl Nov 2, 2022
748a882
fix: lockfile
jaybuidl Nov 2, 2022
d64b313
fix: gluegun from hell must be destroyed
jaybuidl Nov 2, 2022
87df32c
chore(deps-dev): bump mocha from 10.0.0 to 10.1.0
dependabot[bot] Nov 3, 2022
4f7ecf8
chore(deps-dev): bump @types/react from 18.0.21 to 18.0.24
dependabot[bot] Nov 3, 2022
15097f0
chore(deps-dev): bump @dappnode/dappnodesdk from 0.2.65 to 0.2.68
dependabot[bot] Nov 3, 2022
5c40560
chore(deps-dev): bump @typechain/hardhat from 6.1.3 to 6.1.4
dependabot[bot] Nov 3, 2022
09708e6
chore(deps-dev): bump @nomicfoundation/hardhat-chai-matchers
dependabot[bot] Nov 3, 2022
28448db
chore(deps-dev): bump @commitlint/cli from 14.1.0 to 17.2.0
dependabot[bot] Nov 3, 2022
be50611
chore(deps): bump react-modal from 3.15.1 to 3.16.1
dependabot[bot] Nov 3, 2022
e11ae32
chore(deps): bump @graphql-codegen/typescript-operations
dependabot[bot] Nov 3, 2022
c78d409
chore(deps-dev): bump eslint-plugin-prettier from 3.4.1 to 4.2.1
dependabot[bot] Nov 3, 2022
af613eb
chore(deps): bump @graphql-codegen/cli from 2.13.7 to 2.13.11
dependabot[bot] Nov 3, 2022
9a02eab
fix: lockfile
jaybuidl Nov 3, 2022
91d3bda
Merge 'master' into feat/sortition-modularity
unknownunknown1 Nov 5, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/contracts-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js environment
uses: actions/setup-node@v3.4.1
uses: actions/setup-node@v3.5.1
with:
node-version: 16.x

- uses: actions/checkout@v3

- name: Cache node modules
uses: actions/cache@v3.0.7
uses: actions/cache@v3.0.11
env:
cache-name: cache-node-modules
with:
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
working-directory: contracts

- name: Upload a build artifact
uses: actions/upload-artifact@v3.1.0
uses: actions/upload-artifact@v3.1.1
with:
name: code-coverage-report
path: contracts/coverage
6 changes: 3 additions & 3 deletions .github/workflows/deploy-bots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: aws-actions/setup-sam@v1
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: aws-actions/setup-sam@v2
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.STAGING_AWS_ACCESS_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion bot-pinner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"node": ">=16.13.0"
},
"devDependencies": {
"@dappnode/dappnodesdk": "^0.2.65"
"@dappnode/dappnodesdk": "^0.2.68"
}
}
24 changes: 12 additions & 12 deletions contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,39 +25,39 @@
"publish": "yarn npm publish --access public --tag $(cat package.json | jq .version)"
},
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^1.0.3",
"@nomicfoundation/hardhat-chai-matchers": "^1.0.4",
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@0.3.0-beta.13",
"@nomiclabs/hardhat-waffle": "^2.0.3",
"@openzeppelin/contracts": "^4.7.3",
"@tenderly/hardhat-tenderly": "^1.1.6",
"@typechain/ethers-v5": "^10.0.0",
"@typechain/hardhat": "^6.1.2",
"@typechain/hardhat": "^6.1.4",
"@types/chai": "^4.3.3",
"@types/mocha": "^9.1.1",
"@types/mocha": "^10.0.0",
"@types/node": "^16",
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"chai": "^4.3.6",
"chai-ethers": "^0.0.1",
"dotenv": "^16.0.1",
"dotenv": "^16.0.3",
"ethereum-waffle": "^3.4.4",
"ethereumjs-util": "^7.1.4",
"ethers": "^5.6.7",
"follow-redirects": "^1.15.0",
"hardhat": "^2.10.1",
"hardhat": "^2.11.2",
"hardhat-contract-sizer": "^2.6.1",
"hardhat-deploy": "^0.11.12",
"hardhat-deploy": "^0.11.18",
"hardhat-deploy-ethers": "^0.3.0-beta.13",
"hardhat-docgen": "^1.3.0",
"hardhat-gas-reporter": "^1.0.8",
"hardhat-watcher": "^2.3.0",
"hardhat-gas-reporter": "^1.0.9",
"hardhat-watcher": "^2.5.0",
"json-schema": "^0.4.0",
"mocha": "^10.0.0",
"mocha": "^10.1.0",
"node-fetch": "^3.2.10",
"npm-run-all": "^4.1.5",
"shelljs": "^0.8.5",
"solhint": "^3.3.7",
"solidity-coverage": "^0.7.21",
"solidity-coverage": "^0.8.2",
"ts-node": "^10.8.0",
"typechain": "^8.0.0",
"typescript": "^4.6.4"
Expand Down
2 changes: 0 additions & 2 deletions contracts/src/arbitration/KlerosCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,7 @@ contract KlerosCore is IArbitrator {
if (drawnAddress != address(0)) {
// In case no one has staked at the court yet.
jurors[drawnAddress].lockedTokens[dispute.subcourtID] += round.tokensAtStakePerJuror;

emit Draw(drawnAddress, _disputeID, currentRound, round.drawnJurors.length);

round.drawnJurors.push(drawnAddress);
}
}
Expand Down
5 changes: 3 additions & 2 deletions contracts/src/arbitration/dispute-kits/DisputeKitClassic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,8 @@ contract DisputeKitClassic is BaseDisputeKit, IEvidence {
_coreDisputeID,
core.getNumberOfRounds(_coreDisputeID) - 1
);
(uint256 stakedTokens, uint256 lockedTokens, ) = core.getJurorBalance(_juror, subcourtID);
return stakedTokens >= lockedTokens + lockedAmountPerJuror;
(uint256 stakedTokens, uint256 lockedTokens) = core.getJurorBalance(_juror, subcourtID);
(, , uint256 minStake, , , ) = core.courts(subcourtID);
return stakedTokens >= lockedTokens + lockedAmountPerJuror && stakedTokens >= minStake;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -649,9 +649,9 @@ contract DisputeKitSybilResistant is BaseDisputeKit, IEvidence {
_coreDisputeID,
core.getNumberOfRounds(_coreDisputeID) - 1
);
(uint256 stakedTokens, uint256 lockedTokens, ) = core.getJurorBalance(_juror, subcourtID);

if (stakedTokens < lockedTokens + lockedAmountPerJuror) {
(uint256 stakedTokens, uint256 lockedTokens) = core.getJurorBalance(_juror, subcourtID);
(, , uint256 minStake, , , ) = core.courts(subcourtID);
if (stakedTokens < lockedTokens + lockedAmountPerJuror || stakedTokens < minStake) {
return false;
} else {
return proofOfHumanity(_juror);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"node": "16.15.1"
},
"devDependencies": {
"@commitlint/cli": "^14.1.0",
"@commitlint/cli": "^17.2.0",
"@commitlint/config-conventional": "^14.1.0",
"conventional-changelog-cli": "^2.1.1",
"depcheck": "^1.4.2",
Expand All @@ -41,7 +41,7 @@
"eslint-import-resolver-parcel": "^1.10.5",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^5.1.1",
"eslint-utils": "^3.0.0",
"husky": "^7.0.0",
Expand Down
4 changes: 2 additions & 2 deletions subgraph-fastbridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 kleros/fastbridge-arbitrum-rinkeby"
},
"dependencies": {
"@graphprotocol/graph-cli": "^0.33.0",
"@graphprotocol/graph-ts": "^0.27.0"
"@graphprotocol/graph-cli": "^0.34.0",
"@graphprotocol/graph-ts": "^0.28.1"
},
"volta": {
"node": "16.17.0"
Expand Down
4 changes: 2 additions & 2 deletions subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 KlerosCore"
},
"dependencies": {
"@graphprotocol/graph-cli": "^0.33.0",
"@graphprotocol/graph-ts": "^0.27.0"
"@graphprotocol/graph-cli": "^0.34.0",
"@graphprotocol/graph-ts": "^0.28.1"
}
}
28 changes: 16 additions & 12 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@
},
"devDependencies": {
"@parcel/transformer-svg-react": "^2.7.0",
"@types/react": "^18.0.14",
"@types/react": "^18.0.24",
"@types/react-dom": "^18.0.6",
"@types/styled-components": "^5.1.21",
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"@types/styled-components": "^5.1.26",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"@typescript-eslint/utils": "^5.29.0",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-parcel": "^1.10.6",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.8",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-security": "^1.4.0",
"eslint-utils": "^3.0.0",
Expand All @@ -54,11 +54,12 @@
"typescript": "^4.5.5"
},
"dependencies": {
"@graphql-codegen/cli": "^2.11.6",
"@graphql-codegen/cli": "^2.13.11",
"@graphql-codegen/typescript": "^2.7.3",
"@graphql-codegen/typescript-operations": "^2.5.3",
"@graphql-codegen/typescript-operations": "^2.5.6",
"@kleros/kleros-v2-contracts": "workspace:^",
"@kleros/ui-components-library": "^1.7.0",
"@kleros/ui-components-library": "^1.8.1",
"@types/react-modal": "^3.13.1",
"@web3-react/core": "^6.1.9",
"@web3-react/injected-connector": "^6.0.7",
"@web3-react/types": "^6.0.7",
Expand All @@ -67,15 +68,18 @@
"core-js": "^3.21.1",
"ethers": "^5.7.0",
"graphql": "^16.4.0",
"graphql-request": "^4.2.0",
"graphql-request": "^5.0.0",
"moment": "^2.29.4",
"react": "^18.2.0",
"react-chartjs-2": "^4.3.1",
"react-dom": "^18.2.0",
"react-error-boundary": "^3.1.4",
"react-is": "^18.2.0",
"react-router-dom": "6",
"styled-components": "^5.3.5",
"react-jazzicon": "^1.0.4",
"react-loading-skeleton": "^3.1.0",
"react-modal": "^3.16.1",
"react-router-dom": "^6.4.2",
"styled-components": "^5.3.6",
"swr": "^1.3.0"
}
}
5 changes: 3 additions & 2 deletions web/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import { SWRConfig } from "swr";
import { request } from "graphql-request";
import { Routes, Route } from "react-router-dom";
import "react-loading-skeleton/dist/skeleton.css";
import Web3Provider from "context/Web3Provider";
import StyledComponentsProvider from "context/StyledComponentsProvider";
import WrongChainBoundary from "components/WrongChainBoundary";
Expand All @@ -13,7 +14,7 @@ import Dashboard from "./pages/Dashboard";
const fetcherBuilder =
(url: string) =>
({ query, variables }: { query: string; variables?: any }) => {
console.log("fetch");
console.log("fetching subgraph");
return request(url, query, variables);
};

Expand All @@ -32,7 +33,7 @@ const App: React.FC = () => {
<Routes>
<Route path="/" element={<Layout />}>
<Route index element={<Home />} />
<Route path="cases" element={<Cases />} />
<Route path="cases/*" element={<Cases />} />
<Route path="courts" element={<h1>Courts</h1>} />
<Route path="dashboard" element={<Dashboard />} />
<Route
Expand Down
10 changes: 10 additions & 0 deletions web/src/assets/svgs/icons/attachment.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions web/src/assets/svgs/icons/bullhorn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions web/src/assets/svgs/icons/doc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions web/src/assets/svgs/icons/eye.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions web/src/assets/svgs/icons/policy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 26 additions & 33 deletions web/src/components/CasesDisplay/CasesGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import styled from "styled-components";
import { StandardPagination } from "@kleros/ui-components-library";
import { CasesPageQuery } from "queries/useCasesQuery";
import DisputeCard from "components/DisputeCard";

const Container = styled.div`
Expand All @@ -18,42 +19,34 @@ const StyledPagination = styled(StandardPagination)`
`;

export interface ICasesGrid {
disputes: CasesPageQuery["disputes"];
currentPage: number;
setCurrentPage: (newPage: number) => void;
numberDisputes: number;
casesPerPage: number;
}

const CasesGrid: React.FC<ICasesGrid> = ({ casesPerPage }) => (
<>
<Container>
<DisputeCard
title="Register Profile in Proof of Humanity"
id={600}
period={1}
court="Humanity"
category="Identity"
rewards="≥ 0.3 ETH"
date={1651244935}
const CasesGrid: React.FC<ICasesGrid> = ({
disputes,
currentPage,
setCurrentPage,
numberDisputes,
casesPerPage,
}) => {
return (
<>
<Container>
{disputes.map((dispute, i) => {
return <DisputeCard key={i} {...dispute} />;
})}
</Container>
<StyledPagination
{...{ currentPage }}
numPages={Math.ceil(numberDisputes / casesPerPage)}
callback={(page: number) => setCurrentPage(page)}
/>
<DisputeCard
title="Register Profile in Proof of Humanity"
id={600}
period={3}
court="Humanity"
category="Identity"
rewards="≥ 0.3 ETH"
date={1651244935}
/>
<DisputeCard
title="Register Profile in Proof of Humanity"
id={600}
period={4}
court="Humanity"
category="Identity"
rewards="≥ 0.3 ETH"
date={1651244935}
/>
</Container>
<StyledPagination currentPage={1} numPages={1} callback={() => {}} />
</>
);
</>
);
};

export default CasesGrid;
14 changes: 13 additions & 1 deletion web/src/components/CasesDisplay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ interface ICasesDisplay extends ICasesGrid {
}

const CasesDisplay: React.FC<ICasesDisplay> = ({
disputes,
currentPage,
setCurrentPage,
numberDisputes,
casesPerPage,
title = "Cases",
className,
Expand All @@ -24,7 +28,15 @@ const CasesDisplay: React.FC<ICasesDisplay> = ({
<Search />
<StatsAndFilters />
<StyledHR />
<CasesGrid {...{ casesPerPage }} />
<CasesGrid
{...{
disputes,
currentPage,
setCurrentPage,
numberDisputes,
casesPerPage,
}}
/>
</div>
);

Expand Down
Loading