diff --git a/apps/web/app/(ee)/app.dub.co/embed/referrals/activity.tsx b/apps/web/app/(ee)/app.dub.co/embed/referrals/activity.tsx index 76eac63bd68..635557ad128 100644 --- a/apps/web/app/(ee)/app.dub.co/embed/referrals/activity.tsx +++ b/apps/web/app/(ee)/app.dub.co/embed/referrals/activity.tsx @@ -11,6 +11,7 @@ export function ReferralsEmbedActivity() { const { group: { brandColor: color }, stats: { clicks, leads, sales, saleAmount }, + themeOptions, } = useReferralsEmbedData(); const token = useEmbedToken(); @@ -39,7 +40,10 @@ export function ReferralsEmbedActivity() { ); return ( -
+
{isEmpty ? ( ) : ( diff --git a/apps/web/app/(ee)/app.dub.co/embed/referrals/add-edit-link.tsx b/apps/web/app/(ee)/app.dub.co/embed/referrals/add-edit-link.tsx index eece679f6ec..08d8c2db5c9 100644 --- a/apps/web/app/(ee)/app.dub.co/embed/referrals/add-edit-link.tsx +++ b/apps/web/app/(ee)/app.dub.co/embed/referrals/add-edit-link.tsx @@ -44,7 +44,7 @@ export function ReferralsEmbedCreateUpdateLink({ const [errorMessage, setErrorMessage] = useState(null); const [isExactMode, setIsExactMode] = useState(false); - const { program, group } = useReferralsEmbedData(); + const { program, group, themeOptions } = useReferralsEmbedData(); const shortLinkDomain = program.domain || ""; const additionalLinks: PartnerGroupAdditionalLink[] = @@ -143,6 +143,7 @@ export function ReferralsEmbedCreateUpdateLink({ return ( diff --git a/apps/web/app/(ee)/app.dub.co/embed/referrals/bounties/detail.tsx b/apps/web/app/(ee)/app.dub.co/embed/referrals/bounties/detail.tsx index f42733cf8b5..5d78a1b31b6 100644 --- a/apps/web/app/(ee)/app.dub.co/embed/referrals/bounties/detail.tsx +++ b/apps/web/app/(ee)/app.dub.co/embed/referrals/bounties/detail.tsx @@ -23,6 +23,7 @@ import { BountyRewardsTable, } from "../../../../partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/bounties/bounty-card"; import { EmbedBountyPerformanceSection } from "./performance-section"; +import { useReferralsEmbedData } from "../page-client"; import { EmbedBountySubmissionDetail } from "./submission-detail"; import { EmbedBountySubmissionForm } from "./submission-form"; import { EmbedBountySubmissionsTable } from "./submissions-table"; @@ -54,6 +55,7 @@ export function EmbedBountyDetail({ onBountyUpdate?: (bounty: PartnerBountyProps) => void; }) { const [bounty, setBounty] = useState(initialBounty); + const { themeOptions } = useReferralsEmbedData(); const hasRewards = bounty.submissions.some((s) => s.commission != null); @@ -126,7 +128,10 @@ export function EmbedBountyDetail({ } return ( -
+