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.

add legal pages

Steven Teybd58cc8881b1
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 924e48cc34..f820a30b1c 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/ui",
"description": "UI components for Dub.co",
- "version": "0.1.43",
+ "version": "0.1.44",
"sideEffects": false,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
diff --git a/packages/ui/src/footer.tsx b/packages/ui/src/footer.tsx
index f7fa3f4e66..850e16476a 100644
--- a/packages/ui/src/footer.tsx
+++ b/packages/ui/src/footer.tsx
@@ -1,6 +1,13 @@
"use client";
-import { ALL_TOOLS, COMPARE_PAGES, cn, createHref, fetcher } from "@dub/utils";
+import {
+ ALL_TOOLS,
+ COMPARE_PAGES,
+ LEGAL_PAGES,
+ cn,
+ createHref,
+ fetcher,
+} from "@dub/utils";
import Image from "next/image";
import Link from "next/link";
import { useParams } from "next/navigation";
@@ -29,11 +36,10 @@ const navigation = {
name,
href: `/compare/${slug}`,
})),
- legal: [
- { name: "Privacy", href: "/privacy" },
- { name: "Terms", href: "/terms" },
- { name: "Abuse", href: "/abuse" },
- ],
+ legal: LEGAL_PAGES.map(({ name, slug }) => ({
+ name,
+ href: `/legal/${slug}`,
+ })),
tools: ALL_TOOLS.map(({ name, slug }) => ({
name,
href: `/tools/${slug}`,
diff --git a/packages/utils/package.json b/packages/utils/package.json
index a4bc347044..872253735f 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/utils",
"description": "Utility functions and constants for Dub.co",
- "version": "0.0.64",
+ "version": "0.0.65",
"sideEffects": false,
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
diff --git a/packages/utils/src/constants/layout.ts b/packages/utils/src/constants/layout.ts
index 2b809516af..63facbc0f6 100644
--- a/packages/utils/src/constants/layout.ts
+++ b/packages/utils/src/constants/layout.ts
@@ -1,10 +1,4 @@
-export const HIDE_BACKGROUND_SEGMENTS = [
- "stats",
- "changelog",
- "terms",
- "privacy",
- "abuse",
-];
+export const HIDE_BACKGROUND_SEGMENTS = ["stats", "changelog", "legal"];
export const ALL_TOOLS = [
{ name: "Spotify Link Shortener", slug: "spotify-link-shortener" },
@@ -24,3 +18,11 @@ export const COMPARE_PAGES = [
{ name: "Rebrandly", slug: "rebrandly" },
{ name: "Short.io", slug: "short" },
];
+
+export const LEGAL_PAGES = [
+ { name: "Privacy", slug: "privacy" },
+ { name: "Terms", slug: "terms" },
+ { name: "Subprocessors", slug: "subprocessors" },
+ { name: "DPA", slug: "dpa" },
+ { name: "Report Abuse", slug: "abuse" },
+];