Skip to content

Commit

Permalink
fix: appeal icon not showing, gap adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
kemuru committed Dec 13, 2024
1 parent 6b982f3 commit 9921bc0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion web/src/components/StyledIcons/ClosedCircleIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import styled from "styled-components";
import ClosedCircle from "svgs/icons/close-circle.svg";

const StyledClosedCircle = styled(ClosedCircle)`
export const StyledClosedCircle = styled(ClosedCircle)`
path {
fill: ${({ theme }) => theme.error};
}
Expand All @@ -11,4 +11,5 @@ const StyledClosedCircle = styled(ClosedCircle)`
const ClosedCircleIcon: React.FC = () => {
return <StyledClosedCircle />;
};

export default ClosedCircleIcon;
7 changes: 4 additions & 3 deletions web/src/components/Verdict/DisputeTimeline.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import React, { useMemo } from "react";
import styled, { useTheme } from "styled-components";

import { responsiveSize } from "styles/responsiveSize";

import { useParams } from "react-router-dom";

import { _TimelineItem1, CustomTimeline } from "@kleros/ui-components-library";

import CalendarIcon from "svgs/icons/calendar.svg";
import ClosedCaseIcon from "svgs/icons/check-circle-outline.svg";
import AppealedCaseIcon from "svgs/icons/close-circle.svg";

import { Periods } from "consts/periods";
import { usePopulatedDisputeData } from "hooks/queries/usePopulatedDisputeData";
Expand All @@ -19,7 +20,7 @@ import { useVotingHistory } from "queries/useVotingHistory";

import { ClassicRound } from "src/graphql/graphql";

import { responsiveSize } from "styles/responsiveSize";
import { StyledClosedCircle } from "components/StyledIcons/ClosedCircleIcon";

const Container = styled.div`
display: flex;
Expand Down Expand Up @@ -101,7 +102,7 @@ const useItems = (disputeDetails?: DisputeDetailsQuery, arbitrable?: `0x${string
party: "",
subtitle: formatDate(roundTimeline?.[Periods.appeal]),
rightSided: true,
Icon: AppealedCaseIcon,
Icon: StyledClosedCircle,
});
} else if (rulingOverride && parsedDisputeFinalRuling !== parsedRoundChoice) {
acc.push({
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Courts/CourtDetails/StakePanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Container = styled.div`
const StakingArea = styled.div`
display: flex;
flex-direction: column;
gap: 28px;
gap: 24px;
`;

const TagArea = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Courts/CourtDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const CourtHeader = styled.h1`
display: flex;
flex-direction: row;
justify-content: space-between;
gap: 24px;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 16px;
`;
Expand Down

0 comments on commit 9921bc0

Please sign in to comment.