+
diff --git a/packages/component/src/components/setting-components/setting-row.tsx b/packages/component/src/components/setting-components/setting-row.tsx
index 6955a06ce3..2e6cf2ae78 100644
--- a/packages/component/src/components/setting-components/setting-row.tsx
+++ b/packages/component/src/components/setting-components/setting-row.tsx
@@ -10,8 +10,17 @@ export const SettingRow: FC<
style?: CSSProperties;
onClick?: () => void;
spreadCol?: boolean;
+ testId?: string;
}>
-> = ({ name, desc, children, onClick, style, spreadCol = true }) => {
+> = ({
+ name,
+ desc,
+ children,
+ onClick,
+ style,
+ spreadCol = true,
+ testId = '',
+}) => {
return (
{name}
diff --git a/packages/component/src/ui/switch/switch.tsx b/packages/component/src/ui/switch/switch.tsx
index 91945f3b56..a6be83833e 100644
--- a/packages/component/src/ui/switch/switch.tsx
+++ b/packages/component/src/ui/switch/switch.tsx
@@ -1,17 +1,17 @@
// components/switch.tsx
import clsx from 'clsx';
-import { useState } from 'react';
+import { type HTMLAttributes, type ReactNode, useState } from 'react';
import * as styles from './index.css';
-type SwitchProps = {
+type SwitchProps = Omit
, 'onChange'> & {
checked?: boolean;
onChange?: (checked: boolean) => void;
- children?: React.ReactNode;
+ children?: ReactNode;
};
export const Switch = (props: SwitchProps) => {
- const { checked, onChange, children } = props;
+ const { checked, onChange, children, ...otherProps } = props;
const [isChecked, setIsChecked] = useState(checked);
const handleChange = (event: React.ChangeEvent) => {
@@ -21,7 +21,7 @@ export const Switch = (props: SwitchProps) => {
};
return (
-