mirror of
https://github.com/snowball-tools/snowballtools-base.git
synced 2024-11-18 00:49:23 +00:00
🔧 chore: prevent 'gap' due to empty div on Select
This commit is contained in:
parent
207b32ce65
commit
4a86952810
@ -284,15 +284,15 @@ export const Select = ({
|
||||
onClear?.();
|
||||
};
|
||||
|
||||
const renderLabels = useMemo(
|
||||
() => (
|
||||
<div className="space-y-1">
|
||||
const renderLabels = useMemo(() => {
|
||||
if (!label && !description) return null;
|
||||
return (
|
||||
<div className="gap-y-1">
|
||||
<p className={theme.label()}>{label}</p>
|
||||
<p className={theme.description()}>{description}</p>
|
||||
</div>
|
||||
),
|
||||
[theme, label, description],
|
||||
);
|
||||
);
|
||||
}, [theme, label, description]);
|
||||
|
||||
const renderLeftIcon = useMemo(() => {
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user