Skip to content

Commit 108a6c4

Browse files
committed
feat: harmeet feedback
1 parent 73f8e67 commit 108a6c4

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

web/src/components/DisputePreview/Policies.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const Policies: React.FC<IPolicies> = ({ disputePolicyURI, courtId, attac
8686
<StyledP>Make sure you read and understand the Policies</StyledP>
8787
<LinkContainer>
8888
{!isUndefined(attachment) && !isUndefined(attachment.uri) ? (
89-
<StyledInternalLink to={getIpfsUrl(attachment.uri)} target="_blank" rel="noreferrer">
89+
<StyledInternalLink to={`attachment/?url=${getIpfsUrl(attachment.uri)}`}>
9090
<StyledPaperclipIcon />
9191
{attachment.label ?? "Attachment"}
9292
</StyledInternalLink>
File renamed without changes.
File renamed without changes.

web/src/pages/Cases/AttachmentDisplay/Header.tsx

+8-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,14 @@ const Header: React.FC = () => {
7373
navigate(-1);
7474
};
7575

76-
const title = location.pathname.includes("policy") ? `Policy File - Case #${id}` : "Attachment File";
76+
let title = "";
77+
if (location.pathname.includes("policy")) {
78+
title = `Policy - Case #${id}`;
79+
} else if (location.pathname.includes("evidence")) {
80+
title = "Attached File";
81+
} else if (location.pathname.includes("attachment")) {
82+
title = `Attachment - Case #${id}`;
83+
}
7784

7885
return (
7986
<Container>

web/src/pages/Cases/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const Cases: React.FC = () => (
2323
<Route path="/display/:page/:order/:filter" element={<CasesFetcher />} />
2424
<Route path="/:id/evidence/attachment/*" element={<AttachmentDisplay />} />
2525
<Route path="/:id/overview/policy/attachment/*" element={<AttachmentDisplay />} />
26+
<Route path="/:id/overview/attachment/*" element={<AttachmentDisplay />} />
2627
<Route path="/:id/*" element={<CaseDetails />} />
2728
</Routes>
2829
</Container>

web/src/pages/Courts/CourtDetails/Stats.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const StyledCard = styled.div`
8989
height: fit-content;
9090
display: grid;
9191
gap: 32px;
92-
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
92+
grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
9393
padding-top: ${responsiveSize(28, 32)};
9494
padding-bottom: ${responsiveSize(20, 0)};
9595
@@ -143,7 +143,7 @@ const stats: IStat[] = [
143143
icon: VoteStake,
144144
},
145145
{
146-
title: "Juror Reward per Coherent Vote",
146+
title: "Reward per Vote",
147147
coinId: 1,
148148
getText: (data) => {
149149
const jurorReward = formatUnitsWei(data?.feeForJuror);
@@ -180,7 +180,7 @@ const stats: IStat[] = [
180180
icon: BalanceIcon,
181181
},
182182
{
183-
title: "Total ETH paid to Jurors",
183+
title: "Total ETH paid",
184184
coinId: 1,
185185
getText: (data) => formatETH(data?.paidETH),
186186
getSubtext: (data, coinPrice) => formatUSD(Number(formatUnitsWei(data?.paidETH)) * (coinPrice ?? 0)),

0 commit comments

Comments
 (0)