From 686b38eee1e2e01496ac54e442d5fa0d98bb5319 Mon Sep 17 00:00:00 2001 From: Sahaj Jain Date: Wed, 28 May 2025 16:25:17 +0530 Subject: [PATCH] feat: Add manage button to redirect to dashboard in theme preset select --- components/editor/theme-preset-select.tsx | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/components/editor/theme-preset-select.tsx b/components/editor/theme-preset-select.tsx index 243f7930..f1e6ec47 100644 --- a/components/editor/theme-preset-select.tsx +++ b/components/editor/theme-preset-select.tsx @@ -6,11 +6,11 @@ import { Heart, Moon, Search, + Settings, Shuffle, Sun, } from "lucide-react"; import React, { useCallback, useEffect, useMemo, useState } from "react"; - import { useTheme } from "@/components/theme-provider"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; @@ -26,6 +26,7 @@ import { useEditorStore } from "@/store/editor-store"; import { useThemePresetStore } from "@/store/theme-preset-store"; import { ThemePreset } from "@/types/theme"; import { getPresetThemeStyles } from "@/utils/theme-preset-helper"; +import Link from "next/link"; interface ThemePresetSelectProps extends React.ComponentProps { withCycleThemes?: boolean; @@ -328,7 +329,23 @@ const ThemePresetSelect: React.FC = ({ {/* Saved Themes Group */} {filteredSavedThemes.length > 0 && ( <> - + + Saved Themes + + + + + } + > {filteredSavedThemes .filter((name) => name !== "default" && isSavedTheme(name)) .map((presetName, index) => (