From 8af20bbd79444243df63f6fe88fe0d9bc4ee4f97 Mon Sep 17 00:00:00 2001 From: Sahaj Jain Date: Tue, 15 Apr 2025 22:53:46 +0530 Subject: [PATCH] feat: Add pulsing hint if theme hasn't changed to select --- src/components/editor/theme-preset-select.tsx | 9 ++++++++- src/store/editor-store.ts | 10 ++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/components/editor/theme-preset-select.tsx b/src/components/editor/theme-preset-select.tsx index fdd41ce4..a3600e29 100644 --- a/src/components/editor/theme-preset-select.tsx +++ b/src/components/editor/theme-preset-select.tsx @@ -26,6 +26,7 @@ import { } from "../ui/tooltip"; import { Input } from "../ui/input"; import { Badge } from "../ui/badge"; +import { cn } from "@/lib/utils"; interface ThemePresetSelectProps { presets: Record; @@ -56,6 +57,7 @@ const ThemePresetSelect: React.FC = ({ onPresetChange, }) => { const { themeState } = useEditorStore(); + const { hasChangedThemeFromDefault } = useEditorStore(); const { theme, toggleTheme } = useTheme(); const mode = themeState.currentMode; const [search, setSearch] = useState(""); @@ -118,7 +120,12 @@ const ThemePresetSelect: React.FC = ({