From 37d15456dccd0bb49e7c926090b716e377489dbc Mon Sep 17 00:00:00 2001 From: asepharyana Date: Wed, 26 Aug 2026 15:49:58 +0700 Subject: [PATCH] refactor: remove unnecessary PageTransition wrappers from dashboard pages --- .../src/app/(dashboard)/analysis/page.tsx | 7 +------ .../src/app/(dashboard)/channels/page.tsx | 7 +------ .../src/app/(dashboard)/dashboard/page.tsx | 7 +------ .../src/app/(dashboard)/glossary/page.tsx | 7 +------ .../frontend/src/app/(dashboard)/media/page.tsx | 7 +------ .../src/app/(dashboard)/messages/page.tsx | 15 ++++++--------- .../src/app/(dashboard)/moderation/page.tsx | 7 +------ .../src/app/(dashboard)/recordings/page.tsx | 7 +------ .../frontend/src/app/(dashboard)/voice/page.tsx | 7 +------ 9 files changed, 14 insertions(+), 57 deletions(-) diff --git a/services/frontend/src/app/(dashboard)/analysis/page.tsx b/services/frontend/src/app/(dashboard)/analysis/page.tsx index 00eaeed7..dd76297a 100644 --- a/services/frontend/src/app/(dashboard)/analysis/page.tsx +++ b/services/frontend/src/app/(dashboard)/analysis/page.tsx @@ -1,12 +1,7 @@ -import { PageTransition } from "@/components/shared"; import { AnalysisView } from "./view"; export const dynamic = "force-dynamic"; export default function AnalysisPage() { - return ( - - - - ); + return ; } diff --git a/services/frontend/src/app/(dashboard)/channels/page.tsx b/services/frontend/src/app/(dashboard)/channels/page.tsx index edff8305..2ec446b4 100644 --- a/services/frontend/src/app/(dashboard)/channels/page.tsx +++ b/services/frontend/src/app/(dashboard)/channels/page.tsx @@ -1,4 +1,3 @@ -import { PageTransition } from "@/components/shared"; import { getChannelCultures } from "@/lib/api/server"; import type { ChannelCultureRow } from "@/lib/types"; import { ChannelsView } from "./view"; @@ -12,9 +11,5 @@ export default async function ChannelsPage() { } catch { cultures = undefined; } - return ( - - - - ); + return ; } diff --git a/services/frontend/src/app/(dashboard)/dashboard/page.tsx b/services/frontend/src/app/(dashboard)/dashboard/page.tsx index ee1b5c4c..7052caaa 100644 --- a/services/frontend/src/app/(dashboard)/dashboard/page.tsx +++ b/services/frontend/src/app/(dashboard)/dashboard/page.tsx @@ -1,4 +1,3 @@ -import { PageTransition } from "@/components/shared"; import { getActivity, getDashboardStats } from "@/lib/api/server"; import { DashboardView } from "./view"; @@ -15,9 +14,5 @@ export default async function DashboardPage() { } catch { // Backend unavailable — client hooks will surface the error state. } - return ( - - - - ); + return ; } diff --git a/services/frontend/src/app/(dashboard)/glossary/page.tsx b/services/frontend/src/app/(dashboard)/glossary/page.tsx index fcacccb7..fb54a736 100644 --- a/services/frontend/src/app/(dashboard)/glossary/page.tsx +++ b/services/frontend/src/app/(dashboard)/glossary/page.tsx @@ -1,4 +1,3 @@ -import { PageTransition } from "@/components/shared"; import { getGlossary } from "@/lib/api/server"; import type { GlossaryRow } from "@/lib/types"; import { GlossaryView } from "./view"; @@ -12,9 +11,5 @@ export default async function GlossaryPage() { } catch { terms = undefined; } - return ( - - - - ); + return ; } diff --git a/services/frontend/src/app/(dashboard)/media/page.tsx b/services/frontend/src/app/(dashboard)/media/page.tsx index 587fc7e2..f4b01b58 100644 --- a/services/frontend/src/app/(dashboard)/media/page.tsx +++ b/services/frontend/src/app/(dashboard)/media/page.tsx @@ -1,4 +1,3 @@ -import { PageTransition } from "@/components/shared"; import { getMediaStatus } from "@/lib/api/server"; import { MediaView } from "./view"; @@ -11,9 +10,5 @@ export default async function MediaPage() { } catch { /* client hooks surface errors */ } - return ( - - - - ); + return ; } diff --git a/services/frontend/src/app/(dashboard)/messages/page.tsx b/services/frontend/src/app/(dashboard)/messages/page.tsx index fd2e560c..1354a052 100644 --- a/services/frontend/src/app/(dashboard)/messages/page.tsx +++ b/services/frontend/src/app/(dashboard)/messages/page.tsx @@ -1,4 +1,3 @@ -import { PageTransition } from "@/components/shared"; import { getConfig, getGuilds, @@ -28,13 +27,11 @@ export default async function MessagesPage() { /* client hooks surface errors */ } return ( - - - + ); } diff --git a/services/frontend/src/app/(dashboard)/moderation/page.tsx b/services/frontend/src/app/(dashboard)/moderation/page.tsx index 1bfc6940..98637123 100644 --- a/services/frontend/src/app/(dashboard)/moderation/page.tsx +++ b/services/frontend/src/app/(dashboard)/moderation/page.tsx @@ -1,4 +1,3 @@ -import { PageTransition } from "@/components/shared"; import { getModerationActions, getModerationStats } from "@/lib/api/server"; import { ModerationView } from "./view"; @@ -15,9 +14,5 @@ export default async function ModerationPage() { } catch { /* client hooks surface errors */ } - return ( - - - - ); + return ; } diff --git a/services/frontend/src/app/(dashboard)/recordings/page.tsx b/services/frontend/src/app/(dashboard)/recordings/page.tsx index 672a0885..95b2da6d 100644 --- a/services/frontend/src/app/(dashboard)/recordings/page.tsx +++ b/services/frontend/src/app/(dashboard)/recordings/page.tsx @@ -1,4 +1,3 @@ -import { PageTransition } from "@/components/shared"; import { getRecordings } from "@/lib/api/server"; import { RecordingsView } from "./view"; @@ -13,9 +12,5 @@ export default async function RecordingsPage() { } catch { /* client hooks surface errors */ } - return ( - - - - ); + return ; } diff --git a/services/frontend/src/app/(dashboard)/voice/page.tsx b/services/frontend/src/app/(dashboard)/voice/page.tsx index d6eba007..7a9bfd6e 100644 --- a/services/frontend/src/app/(dashboard)/voice/page.tsx +++ b/services/frontend/src/app/(dashboard)/voice/page.tsx @@ -1,4 +1,3 @@ -import { PageTransition } from "@/components/shared"; import { getGuilds, getVoiceStatus } from "@/lib/api/server"; import { VoiceView } from "./view"; @@ -12,9 +11,5 @@ export default async function VoicePage() { } catch { /* client hooks surface errors */ } - return ( - - - - ); + return ; }