fix: removing-all-members-toggle-for-fh (#19277)

* fix : removing all members toggle for fh

* ux enhancements

* adding placeholder
This commit is contained in:
Tushar Bhatt authored and GitHub committed 2025-02-15 10:14:56 +00:00
1 parent be53a20429
commit 62c7627775
3 files changed
+26 -21

No files matched your search

@@ -23,6 +23,7 @@ type Props = {
labelClassName?: string;
descriptionClassName?: string;
noIndentation?: boolean;
hideSwitch?: boolean;
};
function SettingsToggle({
@@ -41,6 +42,7 @@ function SettingsToggle({
labelClassName,
descriptionClassName,
noIndentation = false,
hideSwitch,
...rest
}: Props) {
const [animateRef] = useAutoAnimate<HTMLDivElement>();
@@ -77,16 +79,18 @@ function SettingsToggle({
</p>
)}
</div>
<div className="my-auto h-full">
<Switch
data-testid={rest["data-testid"]}
fitToHeight={true}
checked={checked}
onCheckedChange={onCheckedChange}
disabled={disabled}
tooltip={tooltip}
/>
</div>
{!hideSwitch && (
<div className="my-auto h-full">
<Switch
data-testid={rest["data-testid"]}
fitToHeight={true}
checked={checked}
onCheckedChange={onCheckedChange}
disabled={disabled}
tooltip={tooltip}
/>
</div>
)}
</div>
) : (
<div className="flex space-x-3">