@@ -2,7 +2,7 @@ import React, { useMemo } from "react";
22import styled from "styled-components" ;
33
44import Skeleton from "react-loading-skeleton" ;
5- import { useNavigate , useParams } from "react-router-dom" ;
5+ import { useParams } from "react-router-dom" ;
66import { useAccount } from "wagmi" ;
77
88import ArrowIcon from "svgs/icons/arrow.svg" ;
@@ -19,11 +19,10 @@ import { useDisputeDetailsQuery } from "queries/useDisputeDetailsQuery";
1919
2020import { responsiveSize } from "styles/responsiveSize" ;
2121
22- import LightButton from "../LightButton" ;
23-
2422import AnswerDisplay from "./Answer" ;
2523import VerdictBanner from "./VerdictBanner" ;
2624import { Divider } from "../Divider" ;
25+ import { StyledArrowLink } from "../StyledArrowLink" ;
2726
2827const Container = styled . div `
2928 width: 100%;
@@ -45,16 +44,6 @@ const JuryDecisionTag = styled.small`
4544 color: ${ ( { theme } ) => theme . secondaryText } ;
4645` ;
4746
48- const StyledButton = styled ( LightButton ) `
49- display: flex;
50- flex-direction: row-reverse;
51- gap: 8px;
52- > .button-text {
53- color: ${ ( { theme } ) => theme . primaryBlue } ;
54- }
55- padding-top: 0px;
56- ` ;
57-
5847const StyledDivider = styled ( Divider ) `
5948 margin: ${ responsiveSize ( 16 , 32 ) } 0px;
6049` ;
@@ -73,7 +62,6 @@ const FinalDecision: React.FC<IFinalDecision> = ({ arbitrable }) => {
7362 const localRounds = getLocalRounds ( votingHistory ?. dispute ?. disputeKitDispute ) ;
7463 const ruled = disputeDetails ?. dispute ?. ruled ?? false ;
7564 const periodIndex = Periods [ disputeDetails ?. dispute ?. period ?? "evidence" ] ;
76- const navigate = useNavigate ( ) ;
7765 const { data : currentRulingArray } = useReadKlerosCoreCurrentRuling ( {
7866 query : { refetchInterval : REFETCH_INTERVAL } ,
7967 args : [ BigInt ( id ?? 0 ) ] ,
@@ -108,12 +96,9 @@ const FinalDecision: React.FC<IFinalDecision> = ({ arbitrable }) => {
10896 { isLoading && ! isDisconnected ? (
10997 < Skeleton width = { 250 } height = { 20 } />
11098 ) : (
111- < StyledButton
112- onClick = { ( ) => navigate ( `/cases/${ id ?. toString ( ) } /voting` ) }
113- text = { buttonText }
114- Icon = { ArrowIcon }
115- className = "reverse-button"
116- />
99+ < StyledArrowLink to = { `/cases/${ id ?. toString ( ) } /voting` } >
100+ { buttonText } < ArrowIcon />
101+ </ StyledArrowLink >
117102 ) }
118103 </ Container >
119104 ) ;
0 commit comments