Skip to content

Commit 62b52d8

Browse files
committed
Show allowed domains for bounty URL submissions
Adds a message displaying the list of allowed domains when the bounty has URL submission requirements with domain restrictions. This improves user guidance during the bounty claim process.
1 parent 1e2be47 commit 62b52d8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

apps/web/ui/partners/bounties/claim-bounty-modal.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,16 @@ function ClaimBountyModalContent({ bounty }: ClaimBountyModalProps) {
582582
}
583583
/>
584584
)}
585+
{bounty.submissionRequirements?.url?.domains &&
586+
bounty.submissionRequirements.url.domains.length >
587+
0 && (
588+
<p className="text-xs text-neutral-400">
589+
Allowed domains:{" "}
590+
{bounty.submissionRequirements.url.domains.join(
591+
", ",
592+
)}
593+
</p>
594+
)}
585595
</div>
586596
</div>
587597
)}

0 commit comments

Comments
 (0)