File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ const DisputeCard: React.FC<CasesPageQuery["disputes"][number]> = ({
54
54
const category = metaEvidence ? metaEvidence . category : undefined ;
55
55
const navigate = useNavigate ( ) ;
56
56
return (
57
- < StyledCard hover onClick = { ( ) => navigate ( `/cases/${ id . toString ( ) } /overview ` ) } >
57
+ < StyledCard hover onClick = { ( ) => navigate ( `/cases/${ id . toString ( ) } ` ) } >
58
58
< PeriodBanner id = { parseInt ( id ) } period = { currentPeriodIndex } />
59
59
< Container >
60
60
< h3 > { title } </ h3 >
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import styled from "styled-components" ;
3
- import { Route , Routes , useParams } from "react-router-dom" ;
3
+ import { Route , Routes , useParams , Navigate } from "react-router-dom" ;
4
4
import { Card } from "@kleros/ui-components-library" ;
5
5
import { Periods } from "consts/periods" ;
6
6
import { useDisputeDetailsQuery } from "queries/useDisputeDetailsQuery" ;
@@ -29,6 +29,7 @@ const CaseDetails: React.FC = () => {
29
29
< Route path = "evidence" element = { < Evidence { ...{ arbitrable } } /> } />
30
30
< Route path = "voting" element = { < Voting { ...{ arbitrable, currentPeriodIndex } } /> } />
31
31
< Route path = "appeal" element = { < Appeal { ...{ currentPeriodIndex } } /> } />
32
+ < Route path = "*" element = { < Navigate to = "overview" replace /> } />
32
33
</ Routes >
33
34
</ StyledCard >
34
35
</ Container >
You can’t perform that action at this time.
0 commit comments