Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions components/bounty-detail/bounty-detail-mobile-cta.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use client";

import { useState } from "react";
import { XCircle, Loader2, Users, Gavel } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Textarea } from "@/components/ui/textarea";
Expand All @@ -22,6 +23,7 @@ import {
ApplicationDialog,
} from "@/components/bounty/application-dialog";
import { useBountyCTAState } from "./use-bounty-cta-state";
import { RaiseDisputeDialog } from "./raise-dispute-dialog";

type SidebarBounty = BountyFieldsFragment & Partial<Bounty>;

Expand All @@ -31,6 +33,8 @@ interface MobileCTAProps {
}

export function MobileCTA({ bounty, onCancelled }: MobileCTAProps) {
const [disputeDialogOpen, setDisputeDialogOpen] = useState(false);

const {
walletAddress,
hasJoined,
Expand Down Expand Up @@ -179,18 +183,25 @@ export function MobileCTA({ bounty, onCancelled }: MobileCTAProps) {
</div>
)}

{/* Mobile Raise Dispute — coming soon */}
{/* Mobile Raise Dispute */}
{canRaiseDispute && (
<Button
variant="ghost"
className="w-full mt-2 text-gray-400 text-xs h-8"
disabled
className="w-full mt-2 text-gray-400 hover:text-red-400 hover:bg-red-500/5 transition-all text-xs h-8"
onClick={() => setDisputeDialogOpen(true)}
>
<Gavel className="size-3 mr-2" />
Raise a Dispute (Coming Soon)
Raise a Dispute
</Button>
)}

{/* Mobile Raise Dispute Dialog */}
<RaiseDisputeDialog
open={disputeDialogOpen}
onOpenChange={setDisputeDialogOpen}
bountyId={bounty.id}
/>

{/* Mobile Cancel Dialog */}
<AlertDialog open={cancelDialogOpen} onOpenChange={setCancelDialogOpen}>
<AlertDialogContent>
Expand Down