The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Remove `theme` prop
Tim Wilson75197cbdfba7
diff --git a/packages/embeds/react/src/embed.tsx b/packages/embeds/react/src/embed.tsxindex ae25522874..9c9b464818 100644--- a/packages/embeds/react/src/embed.tsx+++ b/packages/embeds/react/src/embed.tsx@@ -8,13 +8,12 @@ type Options = Omit<DubEmbedOptions, "token">;type DubEmbedProps = {token: DubEmbedOptions["token"];data: DubEmbedOptions["data"];- theme?: DubEmbedOptions["theme"];options?: Options;} & HTMLProps<HTMLDivElement>;export const DubEmbed = memo(- ({ token, data, theme, options, ...rest }: DubEmbedProps) => (- <DubEmbedInner options={{ ...options, token, data, theme }} {...rest} />+ ({ token, data, options, ...rest }: DubEmbedProps) => (+ <DubEmbedInner options={{ ...options, token, data }} {...rest} />),);