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.

noopener/noreferrer

Steven Teybe20c30606d1
diff --git a/apps/web/lib/zod/schemas/program-lander.ts b/apps/web/lib/zod/schemas/program-lander.ts
index 3ac9cca07a..c17fb148b5 100644
--- a/apps/web/lib/zod/schemas/program-lander.ts
+++ b/apps/web/lib/zod/schemas/program-lander.ts
@@ -35,7 +35,7 @@ export const programLanderFileSchema = z.object({
.refine((url) => url.startsWith("http://") || url.startsWith("https://"), {
message: "Only HTTP and HTTPS URLs are allowed for files.",
}),
- external: z.boolean().optional(),
+ external: z.boolean().optional(), // TODO: not using this atm, might wanna change this to `downloadable` boolean instead
});
export const programLanderFilesBlockSchema =
diff --git a/apps/web/ui/partners/lander/blocks/files-block.tsx b/apps/web/ui/partners/lander/blocks/files-block.tsx
index c3c8f7b391..14882d72a3 100644
--- a/apps/web/ui/partners/lander/blocks/files-block.tsx
+++ b/apps/web/ui/partners/lander/blocks/files-block.tsx
@@ -20,7 +20,8 @@ export function FilesBlock({
key={idx}
className="group flex items-center justify-between gap-4 rounded-lg border border-neutral-200 bg-white p-3 transition-colors duration-75 hover:bg-neutral-50 active:bg-neutral-100"
href={file.url}
- {...(file.external ? { target: "_blank" } : { download: true })}
+ target="_blank"
+ rel="noopener noreferrer"
>
<div className="flex min-w-0 items-center gap-4">
<div className="shrink-0 rounded-full border border-neutral-200">