chore: linting

This commit is contained in:
zhom
2026-03-28 23:31:20 +04:00
parent ba750a3401
commit 612c6610ce
36 changed files with 284 additions and 285 deletions
+1 -1
View File
@@ -363,7 +363,7 @@ export type ColorPickerOutputProps = ComponentProps<typeof SelectTrigger>;
const formats = ["hex", "rgb", "css", "hsl"];
export const ColorPickerOutput = ({
className,
className: _className,
...props
}: ColorPickerOutputProps) => {
const { mode, setMode } = useColorPicker();
+2 -2
View File
@@ -43,7 +43,7 @@ interface HighlightContextType<T extends string> {
}
const HighlightContext = React.createContext<
HighlightContextType<any> | undefined
HighlightContextType<string> | undefined
>(undefined);
function useHighlight<T extends string>(): HighlightContextType<T> {
@@ -419,7 +419,7 @@ function HighlightItem<T extends React.ElementType>({
const Component = as ?? "div";
const element = children as React.ReactElement<ExtendedChildProps>;
const childValue =
id ?? value ?? element.props?.["data-value"] ?? element.props?.id ?? itemId;
id ?? value ?? element.props["data-value"] ?? element.props.id ?? itemId;
const isActive = activeValue === childValue;
const isDisabled = disabled === undefined ? contextDisabled : disabled;
const itemTransition = transition ?? contextTransition;