aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app/helpers/lib/get-theme-button.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/app/helpers/lib/get-theme-button.tsx')
-rw-r--r--apps/web/app/helpers/lib/get-theme-button.tsx11
1 files changed, 0 insertions, 11 deletions
diff --git a/apps/web/app/helpers/lib/get-theme-button.tsx b/apps/web/app/helpers/lib/get-theme-button.tsx
deleted file mode 100644
index 020cc976..00000000
--- a/apps/web/app/helpers/lib/get-theme-button.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-// Theming that works perfectly with app router (no flicker, jumps etc!)
-
-import dynamic from "next/dynamic";
-
-// Don't SSR the toggle since the value on the server will be different than the client
-export const getThemeToggler = () =>
- dynamic(() => import("@repo/ui/shadcn/theme-toggle"), {
- ssr: false,
- // Make sure to code a placeholder so the UI doesn't jump when the component loads
- loading: () => <div className="w-6 h-6" />,
- });