diff --git a/src/components/WinnerMonth.js b/src/components/WinnerMonth.js index 0747d69..e367bee 100644 --- a/src/components/WinnerMonth.js +++ b/src/components/WinnerMonth.js @@ -6,6 +6,7 @@ import { getOrchestratorScores } from "../actions/livepeer"; import Ticket from "../components/TicketViewer"; +import { Pagination } from "@mantine/core"; const claimColour = "rgba(25, 158, 29, 0.4)"; const stakeColour = "rgba(25, 158, 147, 0.4)"; @@ -18,9 +19,16 @@ const activationColour = "rgba(154, 158, 25, 0.4)"; const ticketTransferColour = "rgba(88, 91, 42, 0.3)"; const greyColour = "rgba(122, 128, 127, 0.4)"; +const itemsPerPage = 6; + const WinnerMonth = (obj) => { const livepeer = useSelector((state) => state.livepeerstate); const [thisScores, setThisScores] = useState(null); + const [activePage, setPage] = useState(1); + const [activeGraph, setGraph] = useState(1); + + let totalGraphs = 0; + useEffect(() => { const setScore = async () => { @@ -119,6 +127,8 @@ const WinnerMonth = (obj) => { }); } + totalGraphs++; + stakeObj =