From 23ddb90e1f5008a976b0c222e62bddd8520c5cdc Mon Sep 17 00:00:00 2001 From: javayhu Date: Fri, 22 Aug 2025 23:52:58 +0800 Subject: [PATCH 1/2] chore: remove loading components for protected routes --- src/app/[locale]/(protected)/admin/users/loading.tsx | 5 ----- src/app/[locale]/(protected)/settings/billing/loading.tsx | 5 ----- src/app/[locale]/(protected)/settings/credits/loading.tsx | 5 ----- .../[locale]/(protected)/settings/notifications/loading.tsx | 5 ----- src/app/[locale]/(protected)/settings/profile/loading.tsx | 5 ----- src/app/[locale]/(protected)/settings/security/loading.tsx | 5 ----- 6 files changed, 30 deletions(-) delete mode 100644 src/app/[locale]/(protected)/admin/users/loading.tsx delete mode 100644 src/app/[locale]/(protected)/settings/billing/loading.tsx delete mode 100644 src/app/[locale]/(protected)/settings/credits/loading.tsx delete mode 100644 src/app/[locale]/(protected)/settings/notifications/loading.tsx delete mode 100644 src/app/[locale]/(protected)/settings/profile/loading.tsx delete mode 100644 src/app/[locale]/(protected)/settings/security/loading.tsx diff --git a/src/app/[locale]/(protected)/admin/users/loading.tsx b/src/app/[locale]/(protected)/admin/users/loading.tsx deleted file mode 100644 index ebfad58..0000000 --- a/src/app/[locale]/(protected)/admin/users/loading.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { Loader2Icon } from 'lucide-react'; - -export default function Loading() { - return ; -} diff --git a/src/app/[locale]/(protected)/settings/billing/loading.tsx b/src/app/[locale]/(protected)/settings/billing/loading.tsx deleted file mode 100644 index ebfad58..0000000 --- a/src/app/[locale]/(protected)/settings/billing/loading.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { Loader2Icon } from 'lucide-react'; - -export default function Loading() { - return ; -} diff --git a/src/app/[locale]/(protected)/settings/credits/loading.tsx b/src/app/[locale]/(protected)/settings/credits/loading.tsx deleted file mode 100644 index ebfad58..0000000 --- a/src/app/[locale]/(protected)/settings/credits/loading.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { Loader2Icon } from 'lucide-react'; - -export default function Loading() { - return ; -} diff --git a/src/app/[locale]/(protected)/settings/notifications/loading.tsx b/src/app/[locale]/(protected)/settings/notifications/loading.tsx deleted file mode 100644 index ebfad58..0000000 --- a/src/app/[locale]/(protected)/settings/notifications/loading.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { Loader2Icon } from 'lucide-react'; - -export default function Loading() { - return ; -} diff --git a/src/app/[locale]/(protected)/settings/profile/loading.tsx b/src/app/[locale]/(protected)/settings/profile/loading.tsx deleted file mode 100644 index ebfad58..0000000 --- a/src/app/[locale]/(protected)/settings/profile/loading.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { Loader2Icon } from 'lucide-react'; - -export default function Loading() { - return ; -} diff --git a/src/app/[locale]/(protected)/settings/security/loading.tsx b/src/app/[locale]/(protected)/settings/security/loading.tsx deleted file mode 100644 index ebfad58..0000000 --- a/src/app/[locale]/(protected)/settings/security/loading.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { Loader2Icon } from 'lucide-react'; - -export default function Loading() { - return ; -} From 1e1cafff32d651a3f3c028a90e808a03ec380c77 Mon Sep 17 00:00:00 2001 From: javayhu Date: Sat, 23 Aug 2025 00:08:33 +0800 Subject: [PATCH 2/2] chore: delete loading component for protected routes --- src/app/[locale]/(protected)/loading.tsx | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 src/app/[locale]/(protected)/loading.tsx diff --git a/src/app/[locale]/(protected)/loading.tsx b/src/app/[locale]/(protected)/loading.tsx deleted file mode 100644 index ebfad58..0000000 --- a/src/app/[locale]/(protected)/loading.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { Loader2Icon } from 'lucide-react'; - -export default function Loading() { - return ; -}