diff --git a/src/components/home/hero.tsx b/src/components/home/hero.tsx index 6c5b18e9..1bd685b5 100644 --- a/src/components/home/hero.tsx +++ b/src/components/home/hero.tsx @@ -7,7 +7,6 @@ import { Link } from "react-router"; export function Hero() { const { themeState } = useEditorStore(); - const mode = themeState.currentMode; return (
diff --git a/src/components/home/theme-preset-selector.tsx b/src/components/home/theme-preset-selector.tsx index 8f83a829..e055d4ab 100644 --- a/src/components/home/theme-preset-selector.tsx +++ b/src/components/home/theme-preset-selector.tsx @@ -10,6 +10,7 @@ import { DemoGithub } from "@/components/examples/cards/github-card"; import { DemoStats } from "@/components/examples/cards/stats"; import { lazy, Suspense } from "react"; import { Loading } from "../loading"; +import { useIsMobile } from "@/hooks/use-mobile"; const DemoMail = lazy(() => import("@/components/examples/mail")); @@ -23,6 +24,7 @@ export function ThemePresetSelector() { const { themeState, applyThemePreset } = useEditorStore(); const mode = themeState.currentMode; const presetNames = Object.keys(presets); + const isMobile = useIsMobile(); return (
@@ -111,17 +113,18 @@ export function ThemePresetSelector() { }} /> }> -
+ {!isMobile ? ( -
-
- - - - - - -
+ ) : ( +
+ + + + + + +
+ )}