-
{getIcon(type)}
-
- {label &&
{label}
}
- {children &&
{children}
}
+
+
+
{getIcon(type)}
+
+ {label &&
{label}
}
+ {children &&
{children}
}
+
+
+ {dismissible && (
+
+ )}
);
diff --git a/src/Components/SwitchInput/SwitchInput.tsx b/src/Components/SwitchInput/SwitchInput.tsx
index 8c9a492..6c5bc0e 100644
--- a/src/Components/SwitchInput/SwitchInput.tsx
+++ b/src/Components/SwitchInput/SwitchInput.tsx
@@ -8,6 +8,7 @@ type Props = {
initialValue?: boolean;
help?: ReactNode;
disabled?: boolean;
+ html?: boolean;
className?: string;
onChange?: (status: boolean) => void;
};
@@ -17,6 +18,7 @@ const SwitchInput = ({
label,
help,
disabled = false,
+ html = false,
className,
onChange,
}: Props) => {
@@ -61,7 +63,14 @@ const SwitchInput = ({
{label}
- {help &&
{help}
}
+ {help && !html &&
{help}
}
+
+ {help && html && (
+
+ )}
diff --git a/src/Components/Tooltip/Tooltip.tsx b/src/Components/Tooltip/Tooltip.tsx
index 82b8579..26c3542 100644
--- a/src/Components/Tooltip/Tooltip.tsx
+++ b/src/Components/Tooltip/Tooltip.tsx
@@ -22,7 +22,7 @@ const Tooltip: React.FC