Skip to content

Commit eb7d2fd

Browse files
committed
refactor: rename prop
1 parent 066916a commit eb7d2fd

File tree

1 file changed

+3
-3
lines changed
  • packages/ui-components/src/Common/Switch

1 file changed

+3
-3
lines changed

packages/ui-components/src/Common/Switch/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ type SwitchProps = SwitchPrimitive.SwitchProps & {
88
label?: string;
99
checked?: boolean;
1010
onCheckedChange?: (checked: boolean) => void;
11-
thumbClassname?: string;
11+
thumbClassName?: string;
1212
};
1313

1414
const Switch: FC<PropsWithChildren<SwitchProps>> = ({
1515
label,
1616
checked,
1717
onCheckedChange,
1818
className,
19-
thumbClassname,
19+
thumbClassName,
2020
...props
2121
}) => {
2222
const id = useId();
@@ -36,7 +36,7 @@ const Switch: FC<PropsWithChildren<SwitchProps>> = ({
3636
{...props}
3737
>
3838
<SwitchPrimitive.Thumb
39-
className={classNames(styles.thumb, thumbClassname)}
39+
className={classNames(styles.thumb, thumbClassName)}
4040
/>
4141
</SwitchPrimitive.Root>
4242
</div>

0 commit comments

Comments
 (0)