Streamfield: don't render values container unless it has values

api-accept
Alex Gleason 2022-05-05 15:59:36 -05:00
rodzic 9abe924e92
commit b401af2950
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 18 dodań i 16 usunięć

Wyświetl plik

@ -65,6 +65,7 @@ const Streamfield: React.FC<IStreamfield> = ({
{hint && <Text size='xs' theme='muted'>{hint}</Text>}
</Stack>
{(values.length > 0) && (
<Stack>
{values.map((value, i) => (
<HStack space={2} alignItems='center'>
@ -81,6 +82,7 @@ const Streamfield: React.FC<IStreamfield> = ({
</HStack>
))}
</Stack>
)}
{onAddItem && (
<Button