The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update bounty-submission-details-sheet.tsx
Steven Tey704dacdf8e02
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsxindex 6288a771b9..fe773f0b04 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx@@ -41,6 +41,7 @@ import {timeAgo,} from "@dub/utils";import Linkify from "linkify-react";+import Link from "next/link";import {Dispatch,SetStateAction,@@ -529,14 +530,13 @@ function BountySubmissionDetailsSheetContent({<div className="sticky bottom-0 z-10 border-t border-neutral-200 bg-white"><div className="flex items-center justify-between gap-2 p-5">- {submission.status === "approved" ? (- <a- href={`/${workspaceSlug}/program/commissions?partnerId=${submission.partner.id}&type=custom`}- target="_blank"+ {submission.status === "approved" && submission.commission?.id ? (+ <Link+ href={`/${workspaceSlug}/program/commissions/${submission.commission.id}`}className="w-full">- <Button variant="secondary" text="View commissions" />- </a>+ <Button variant="secondary" text="View commission" />+ </Link>) : (<div className="flex w-full flex-col gap-4">{!bounty?.rewardAmount && (