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.

remove webhooks flag

Steven Tey9c76bf64bd83
diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
index 4d7f199b08..4426320b51 100644
--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
@@ -1,8 +1,6 @@
"use client";
import usePrograms from "@/lib/swr/use-programs";
-import useWorkspace from "@/lib/swr/use-workspace";
-import { BetaFeatures } from "@/lib/types";
import { useRouterStuff } from "@dub/ui";
import {
Books2,
@@ -35,7 +33,6 @@ import { WorkspaceDropdown } from "./workspace-dropdown";
const NAV_AREAS: SidebarNavAreas<{
slug: string;
queryString: string;
- flags?: Record<BetaFeatures, boolean>;
programs?: { id: string }[];
session?: Session | null;
}> = {
@@ -119,7 +116,7 @@ const NAV_AREAS: SidebarNavAreas<{
}),
// Workspace settings
- workspaceSettings: ({ slug, flags }) => ({
+ workspaceSettings: ({ slug }) => ({
title: "Settings",
backHref: `/${slug}`,
content: [
@@ -177,15 +174,11 @@ const NAV_AREAS: SidebarNavAreas<{
icon: CubeSettings,
href: `/${slug}/settings/oauth-apps`,
},
- ...(flags?.webhooks
- ? [
- {
- name: "Webhooks",
- icon: Webhook,
- href: `/${slug}/settings/webhooks`,
- },
- ]
- : []),
+ {
+ name: "Webhooks",
+ icon: Webhook,
+ href: `/${slug}/settings/webhooks`,
+ },
],
},
{
@@ -244,7 +237,6 @@ export function AppSidebarNav({
}) {
const { slug } = useParams() as { slug?: string };
const pathname = usePathname();
- const { flags } = useWorkspace();
const { getQueryString } = useRouterStuff();
const { data: session } = useSession();
const { programs } = usePrograms();
@@ -264,7 +256,6 @@ export function AppSidebarNav({
data={{
slug: slug || "",
queryString: getQueryString(),
- flags,
programs,
session: session || undefined,
}}