sforkowany z mirror/soapbox
Streamfield: don't render values container unless it has values
rodzic
9abe924e92
commit
b401af2950
|
@ -65,6 +65,7 @@ const Streamfield: React.FC<IStreamfield> = ({
|
||||||
{hint && <Text size='xs' theme='muted'>{hint}</Text>}
|
{hint && <Text size='xs' theme='muted'>{hint}</Text>}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
|
{(values.length > 0) && (
|
||||||
<Stack>
|
<Stack>
|
||||||
{values.map((value, i) => (
|
{values.map((value, i) => (
|
||||||
<HStack space={2} alignItems='center'>
|
<HStack space={2} alignItems='center'>
|
||||||
|
@ -81,6 +82,7 @@ const Streamfield: React.FC<IStreamfield> = ({
|
||||||
</HStack>
|
</HStack>
|
||||||
))}
|
))}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
)}
|
||||||
|
|
||||||
{onAddItem && (
|
{onAddItem && (
|
||||||
<Button
|
<Button
|
||||||
|
|
Ładowanie…
Reference in New Issue