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.

move email editor

Steven Tey3f030b88af7a
diff --git a/apps/web/app/(ee)/app.dub.co/(program-email)/layout.tsx b/apps/web/app/(ee)/app.dub.co/(program-email)/layout.tsx
deleted file mode 100644
index da7c616922..0000000000
--- a/apps/web/app/(ee)/app.dub.co/(program-email)/layout.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import WorkspaceAuth from "app/app.dub.co/(dashboard)/[slug]/auth";
-import { ReactNode } from "react";
-
-export default function ProgramEmailLayout({
- children,
-}: {
- children: ReactNode;
-}) {
- return <WorkspaceAuth>{children}</WorkspaceAuth>;
-}
diff --git a/apps/web/app/(ee)/app.dub.co/(program-email)/[slug]/program/emails/[emailId]/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/[emailId]/page-client.tsx
similarity index 100%
rename from apps/web/app/(ee)/app.dub.co/(program-email)/[slug]/program/emails/[emailId]/page-client.tsx
rename to apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/[emailId]/page-client.tsx
diff --git a/apps/web/app/(ee)/app.dub.co/(program-email)/[slug]/program/emails/[emailId]/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/[emailId]/page.tsx
similarity index 100%
rename from apps/web/app/(ee)/app.dub.co/(program-email)/[slug]/program/emails/[emailId]/page.tsx
rename to apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/[emailId]/page.tsx
diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
index bdbcf05bdb..e13c10ddd5 100644
--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
@@ -421,6 +421,8 @@ export function AppSidebarNav({
// TODO: remove when we migrate to Next.js 15 + PPR
pathname.endsWith("/guides") ||
pathname.includes("/guides/") ||
+ // for the email editor page
+ pathname.includes("/program/emails/") ||
// this one is for the payout success page
pathname.endsWith("/program/payouts/success")
? null