diff --git a/client/src/__tests__/CampaignsPage.test.tsx b/client/src/__tests__/CampaignsPage.test.tsx index 2aa9893..c08a5eb 100644 --- a/client/src/__tests__/CampaignsPage.test.tsx +++ b/client/src/__tests__/CampaignsPage.test.tsx @@ -39,7 +39,7 @@ function mockQuery(partial: Record) { isError: false, refetch: vi.fn(), ...partial, - } as ReturnType); + } as unknown as ReturnType); } function renderPage() { diff --git a/client/src/components/campaign/DisputeDetailsCard.tsx b/client/src/components/campaign/DisputeDetailsCard.tsx index 57e73ab..8c63358 100644 --- a/client/src/components/campaign/DisputeDetailsCard.tsx +++ b/client/src/components/campaign/DisputeDetailsCard.tsx @@ -22,42 +22,38 @@ export const DisputeDetailsCard: React.FC = ({ }) => (

Dispute {dispute.status === 'Open' ? 'open' : 'resolved'}

- + {dispute.status}
-
Reason
-
+
Reason
+
{dispute.reason}
-
- Opened by -
-
+
Opened by
+
{truncateAddress(dispute.opener)}
{dispute.timestamp !== undefined && (
-
- Opened at -
-
+
Opened at
+
{new Date(dispute.timestamp * 1000).toLocaleString()}
@@ -65,7 +61,7 @@ export const DisputeDetailsCard: React.FC = ({
-

+

Fund release is paused until an admin resolves this dispute.

diff --git a/client/src/components/campaign/OpenDisputeModal.tsx b/client/src/components/campaign/OpenDisputeModal.tsx index 487c769..4f44357 100644 --- a/client/src/components/campaign/OpenDisputeModal.tsx +++ b/client/src/components/campaign/OpenDisputeModal.tsx @@ -73,24 +73,27 @@ export const OpenDisputeModal: React.FC = ({ const remaining = DISPUTE_REASON_MAX_LENGTH - reason.trim().length; return ( - +
-

+

You are opening a dispute on{' '} - - {campaignTitle} - {' '} + {campaignTitle}{' '} as the {ROLE_LABEL[role]}. This moves the campaign to{' '} - Disputed and pauses fund - release until an admin resolves it. + Disputed and + pauses fund release until an admin resolves it.