Skip to content

Commit c56935a

Browse files
committed
fix: lint errors
1 parent 8acbfd5 commit c56935a

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

www/src/components/theme-colors-selector.tsx

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use client";
22

33
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";
66
import {
77
ColorSwatchPicker,
88
ColorSwatchPickerItem,
@@ -14,14 +14,14 @@ export const ThemeColorsSelector = ({
1414
}: {
1515
children?: React.ReactNode;
1616
}) => {
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);
2525

2626
return (
2727
<DialogRoot>
@@ -32,7 +32,7 @@ export const ThemeColorsSelector = ({
3232
>
3333
<p className="text-fg-muted text-sm">Neutral</p>
3434
<ColorSwatchPicker
35-
value={accentColor.value}
35+
// value={accentColor.value}
3636
className="grid grid-cols-5"
3737
>
3838
{neutralColors.map((color) => (

www/src/registry/core/color-swatch-picker_basic.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ interface ColorSwatchPickerItemProps
2121
extends React.ComponentProps<typeof AriaColorSwatchPickerItem> {}
2222
const ColorSwatchPickerItem = ({
2323
className,
24-
children,
2524
...props
2625
}: ColorSwatchPickerItemProps) => {
2726
return (

0 commit comments

Comments
 (0)