style: update class names for improved consistency in text editor and switch components
This commit is contained in:
@@ -56,7 +56,7 @@ export const Switch = <TFormValues extends Record<string, unknown>>(
|
||||
control={control}
|
||||
rules={rules}
|
||||
render={({ field }) => (
|
||||
<div className={twMerge('flex items-center', inputClassName)}>
|
||||
<div className={twMerge('flex items-center', className)}>
|
||||
<HeadlessSwitch
|
||||
checked={field.value}
|
||||
onChange={(checked) => {
|
||||
@@ -64,7 +64,7 @@ export const Switch = <TFormValues extends Record<string, unknown>>(
|
||||
}}
|
||||
className={twMerge(
|
||||
'group relative flex h-7 w-14 cursor-pointer rounded-full bg-[#2E2F7C]/10 p-1 shadow transition-colors duration-200 ease-in-out focus:outline-none data-[checked]:bg-[#2E2F7C]/90 data-[focus]:outline-1 data-[focus]:outline-white',
|
||||
className,
|
||||
inputClassName,
|
||||
)}
|
||||
>
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user