Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix: making OG section available to everyone

flooorianflobd21cf6d6459
diff --git a/apps/web/ui/modals/add-edit-link-modal/og-section.tsx b/apps/web/ui/modals/add-edit-link-modal/og-section.tsx
index 94be949ec2..b597860e4c 100644
--- a/apps/web/ui/modals/add-edit-link-modal/og-section.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/og-section.tsx
@@ -12,7 +12,6 @@ import {
Switch,
Unsplash,
} from "@dub/ui";
-import { TooltipContent } from "@dub/ui/src/tooltip";
import { FADE_IN_ANIMATION_SETTINGS } from "@dub/utils";
import { motion } from "framer-motion";
import { Link2 } from "lucide-react";
@@ -156,32 +155,8 @@ export default function OGSection({
<Switch
fn={() => setData((prev) => ({ ...prev, proxy: !proxy }))}
checked={proxy}
- // custom social media cards is only available on Dub's Pro plan
- {...((!plan || plan === "free") && !proxy
- ? {
- disabledTooltip: (
- <TooltipContent
- title={`Custom Social Media Cards is only available on ${process.env.NEXT_PUBLIC_APP_NAME}'s Pro plan. Upgrade to Pro to use this feature.`}
- cta="Upgrade to Pro"
- {...(plan === "free"
- ? {
- onClick: () =>
- queryParams({
- set: {
- upgrade: "pro",
- },
- }),
- }
- : {
- href: `${HOME_DOMAIN}/pricing`,
- })}
- />
- ),
- }
- : {})}
/>
</div>
-
{proxy && (
<motion.div
key="og-options"