The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
dotsFlowConfigurations
Steven Teye969cc2afa9b
diff --git a/apps/web/app/partners.dub.co/(dashboard)/[partnerId]/settings/payouts/page-client.tsx b/apps/web/app/partners.dub.co/(dashboard)/[partnerId]/settings/payouts/page-client.tsxindex 90ba115bfe..9f82462787 100644--- a/apps/web/app/partners.dub.co/(dashboard)/[partnerId]/settings/payouts/page-client.tsx+++ b/apps/web/app/partners.dub.co/(dashboard)/[partnerId]/settings/payouts/page-client.tsx@@ -2,6 +2,7 @@import { createDotsFlowAction } from "@/lib/actions/partners/create-dots-flow";import { DotsFlowSteps, DotsUser } from "@/lib/dots/types";+import { dotsFlowConfigurations } from "@/lib/dots/utils";import usePartnerProfile from "@/lib/swr/use-partner-profile";import LayoutLoader from "@/ui/layout/layout-loader";import { AnimatedEmptyState } from "@/ui/shared/animated-empty-state";@@ -49,7 +50,10 @@ export function PayoutsSettingsPageClient() {toast.error(result?.data?.error);return;}- setModalState({ show: true, iframeSrc: result.data.link });+ setModalState({+ show: true,+ iframeSrc: `${result.data.link}?styles=${dotsFlowConfigurations}`,+ });};return (diff --git a/apps/web/lib/dots/platforms.tsx b/apps/web/lib/dots/platforms.tsxindex a918b06fc9..05d6ce1179 100644--- a/apps/web/lib/dots/platforms.tsx+++ b/apps/web/lib/dots/platforms.tsx@@ -10,7 +10,13 @@ export const DOTS_PAYOUT_PLATFORMS = [{id: "paypal",name: "PayPal",- icon: <Paypal className="size-4 text-neutral-700" />,+ icon: <Paypal className="size-4" />,+ iconBgColor: "bg-blue-100",+ },+ {+ id: "venmo",+ name: "Venmo",+ icon: <Paypal className="size-4" />,iconBgColor: "bg-blue-100",},// TODO: [dots] add remaining platforms – venmo, cash_app, intl_transfer, airtm, payoneerdiff --git a/apps/web/lib/dots/utils.ts b/apps/web/lib/dots/utils.tsindex 089d223043..6361db9b42 100644--- a/apps/web/lib/dots/utils.ts+++ b/apps/web/lib/dots/utils.ts@@ -11,3 +11,29 @@ export const dotsHeaders = ({ dotsAppId }: { dotsAppId?: string } = {}) => {...(dotsAppId ? { "Api-App-Id": dotsAppId } : {}),};};++export const dotsFlowConfigurations = encodeURIComponent(+ JSON.stringify({+ theme: "light",+ variables: {+ backgroundColor: "#ffffff",+ primaryTextColor: "#000000",+ secondaryTextColor: "#757575",+ primaryColor: "#000000",+ tabBackgroundColor: "#ffffff",+ tabHoverBackgroundColor: "#f5f5f5",+ tabBorderColor: "#757575",+ tabHoverBorderColor: "#757575",+ buttonBackgroundColor: "#000000",+ buttonTextColor: "#ffffff",+ buttonHoverTextColor: "#ffffff",+ buttonHoverBackgroundColor: "#1F2937",+ inputBackgroundColor: "#ffffff",+ inputBorderColor: "#757575",+ buttonDisabledBackgroundColor: "#f1f3f4",+ buttonDisabledTextColor: "#9a9ba2",+ inputPlaceholderColor: "#9a9ba2",+ borderRadius: "10px",+ },+ }),+);