Commit c56935a 1 parent 8acbfd5 commit c56935a Copy full SHA for c56935a
File tree 2 files changed +11
-12
lines changed
2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
3
3
import React from "react" ;
4
- import { parseColor , type Color } from "react-aria-components" ;
5
- import { Button } from "@/components/core/button" ;
4
+ // import { parseColor, type Color } from "react-aria-components";
5
+ // import { Button } from "@/components/core/button";
6
6
import {
7
7
ColorSwatchPicker ,
8
8
ColorSwatchPickerItem ,
@@ -14,14 +14,14 @@ export const ThemeColorsSelector = ({
14
14
} : {
15
15
children ?: React . ReactNode ;
16
16
} ) => {
17
- const [ accentColor , setAccentColor ] = React . useState < {
18
- name : "" ;
19
- value : Color ;
20
- } > ( {
21
- name : "" ,
22
- value : parseColor ( "#f9a825" ) ,
23
- } ) ;
24
- const [ primaryColor , setPrimaryColor ] = React . useState < string | null > ( null ) ;
17
+ // const [accentColor, setAccentColor] = React.useState<{
18
+ // name: "";
19
+ // value: Color;
20
+ // }>({
21
+ // name: "",
22
+ // value: parseColor("#f9a825"),
23
+ // });
24
+ // const [primaryColor, setPrimaryColor] = React.useState<string | null>(null);
25
25
26
26
return (
27
27
< DialogRoot >
@@ -32,7 +32,7 @@ export const ThemeColorsSelector = ({
32
32
>
33
33
< p className = "text-fg-muted text-sm" > Neutral</ p >
34
34
< ColorSwatchPicker
35
- value = { accentColor . value }
35
+ // value={accentColor.value}
36
36
className = "grid grid-cols-5"
37
37
>
38
38
{ neutralColors . map ( ( color ) => (
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ interface ColorSwatchPickerItemProps
21
21
extends React . ComponentProps < typeof AriaColorSwatchPickerItem > { }
22
22
const ColorSwatchPickerItem = ( {
23
23
className,
24
- children,
25
24
...props
26
25
} : ColorSwatchPickerItemProps ) => {
27
26
return (
You can’t perform that action at this time.
0 commit comments