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 API keys to sidebar

Kiran K3781e9308987
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/layout.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/layout.tsx
index 29cf308545..aa5fa6cb94 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/layout.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/layout.tsx
@@ -23,6 +23,10 @@ export default function WorkspaceSettingsLayout({
name: "Security",
segment: "security",
},
+ {
+ name: "API Keys",
+ segment: "tokens",
+ },
];
return <SettingsLayout tabs={tabs}>{children}</SettingsLayout>;
diff --git a/apps/web/app/app.dub.co/(dashboard)/settings/tokens/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/settings/tokens/page-client.tsx
index 8517915819..e9f8aeed3d 100644
--- a/apps/web/app/app.dub.co/(dashboard)/settings/tokens/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/settings/tokens/page-client.tsx
@@ -12,7 +12,7 @@ import {
} from "@dub/ui";
import { fetcher, timeAgo } from "@dub/utils";
import { Token } from "@prisma/client";
-import { FolderOpen, MoreVertical, Trash } from "lucide-react";
+import { FolderOpen, Info, MoreVertical, Trash } from "lucide-react";
import { useState } from "react";
import useSWR from "swr";
@@ -25,7 +25,7 @@ export default function TokensPageClient() {
return (
<>
<Alert>
- {/* <Info className="h-6 w-6 mt-1" /> */}
+ <Info className="h-5 w-5 mt-2 text-yellow-500" />
<AlertTitle>
User API Keys have been replaced by Workspace API Keys.
</AlertTitle>
diff --git a/packages/ui/src/alert.tsx b/packages/ui/src/alert.tsx
index 3ff4d00654..6e1b26b3b0 100644
--- a/packages/ui/src/alert.tsx
+++ b/packages/ui/src/alert.tsx
@@ -39,7 +39,7 @@ const AlertTitle = React.forwardRef<
<h5
ref={ref}
className={cn(
- "text-lg mb-2 font-medium leading-none tracking-tight",
+ "text-md mb-2 font-medium leading-none tracking-tight",
className,
)}
{...props}