diff --git a/src/shared/components/switch/switch.tsx b/src/shared/components/switch/switch.tsx index e186f9292..aeb4f9494 100644 --- a/src/shared/components/switch/switch.tsx +++ b/src/shared/components/switch/switch.tsx @@ -1,23 +1,27 @@ import type { SwitchProps as MantineSwitchProps } from '@mantine/core'; import { Switch as MantineSwitch } from '@mantine/core'; +import { forwardRef, Ref } from 'react'; import styles from './switch.module.css'; type SwitchProps = MantineSwitchProps; -export const Switch = ({ classNames, ...props }: SwitchProps) => { - return ( - - ); -}; +export const Switch = forwardRef( + ({ classNames, ...props }: SwitchProps, ref: Ref) => { + return ( + + ); + }, +);