@@ -5,11 +5,11 @@ import { utils } from "ethers";
55import Skeleton from "react-loading-skeleton" ;
66import { Card } from "@kleros/ui-components-library" ;
77import { Periods } from "consts/periods" ;
8- import { useGetMetaEvidence } from "queries/useGetMetaEvidence" ;
9- import { useCourtPolicy } from "queries/useCourtPolicy" ;
108import { CasesPageQuery } from "queries/useCasesQuery" ;
11- import PeriodBanner from "./PeriodBanner" ;
9+ import { useCourtPolicy } from "queries/useCourtPolicy" ;
10+ import { useGetMetaEvidence } from "queries/useGetMetaEvidence" ;
1211import DisputeInfo from "./DisputeInfo" ;
12+ import PeriodBanner from "./PeriodBanner" ;
1313
1414const StyledCard = styled ( Card ) `
1515 max-width: 380px;
@@ -29,11 +29,7 @@ const Container = styled.div`
2929 }
3030` ;
3131
32- const getPeriodEndTimestamp = (
33- lastPeriodChange : string ,
34- currentPeriodIndex : number ,
35- timesPerPeriod : string [ ]
36- ) => {
32+ const getPeriodEndTimestamp = ( lastPeriodChange : string , currentPeriodIndex : number , timesPerPeriod : string [ ] ) => {
3733 const durationCurrentPeriod = parseInt ( timesPerPeriod [ currentPeriodIndex ] ) ;
3834 return parseInt ( lastPeriodChange ) + durationCurrentPeriod ;
3935} ;
@@ -50,11 +46,7 @@ const DisputeCard: React.FC<CasesPageQuery["disputes"][number]> = ({
5046 const date =
5147 currentPeriodIndex === 4
5248 ? lastPeriodChange
53- : getPeriodEndTimestamp (
54- lastPeriodChange ,
55- currentPeriodIndex ,
56- court . timesPerPeriod
57- ) ;
49+ : getPeriodEndTimestamp ( lastPeriodChange , currentPeriodIndex , court . timesPerPeriod ) ;
5850 const { data : metaEvidence } = useGetMetaEvidence ( id , arbitrated . id ) ;
5951 const title = metaEvidence ? metaEvidence . title : < Skeleton /> ;
6052 const { data : courtPolicy } = useCourtPolicy ( court . id ) ;
0 commit comments