From 98d75dd4d0d1272d516d3aadcd998b0918ebef00 Mon Sep 17 00:00:00 2001 From: mbaharip <62494292+mbahArip@users.noreply.github.com> Date: Sat, 4 May 2024 20:03:16 +0700 Subject: [PATCH] Add under construction message on theme customization --- src/app/[...rest]/deploy/docs.tsx | 55 +++---------------------------- 1 file changed, 5 insertions(+), 50 deletions(-) diff --git a/src/app/[...rest]/deploy/docs.tsx b/src/app/[...rest]/deploy/docs.tsx index 1e0bf9c..465972f 100644 --- a/src/app/[...rest]/deploy/docs.tsx +++ b/src/app/[...rest]/deploy/docs.tsx @@ -1,7 +1,6 @@ "use client"; import { useEffect, useRef, useState } from "react"; -import { HslColor, HslColorPicker } from "react-colorful"; import toast from "react-hot-toast"; import { z } from "zod"; import { @@ -17,11 +16,6 @@ import Markdown from "~/app/@markdown"; import Icon from "~/components/Icon"; import { Button } from "~/components/ui/button"; import { Card, CardContent, CardHeader, CardTitle } from "~/components/ui/card"; -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuTrigger, -} from "~/components/ui/dropdown-menu"; import { Separator } from "~/components/ui/separator"; import { encryptData } from "~/utils/encryptionHelper/hash"; @@ -754,40 +748,6 @@ If you're migrating from previous version, you can load your old environment and } export function CustomizeTheme() { - const ColorLabel = ({ - label, - value, - onChange, - }: { - label: string; - value: HslColor; - onChange: (newColor: HslColor) => void; - }) => { - return ( -
- {label}: - - -
-
-
- - - - - -
- ); - }; - const [colors, setColors] = useState({ primary: { h: 200, s: 50, l: 50 }, secondary: { h: 200, s: 50, l: 50 }, @@ -805,16 +765,11 @@ export function CustomizeTheme() { - -
- -
- { - setColors((prev) => ({ ...prev, primary: e })); - }} +