kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Streamfield: remove "Add" button when maxItems is reached
rodzic
088f7e0b0e
commit
a875163ed9
|
@ -87,10 +87,9 @@ const Streamfield: React.FC<IStreamfield> = ({
|
|||
</Stack>
|
||||
)}
|
||||
|
||||
{onAddItem && (
|
||||
{(onAddItem && (values.length < maxItems)) && (
|
||||
<Button
|
||||
onClick={onAddItem}
|
||||
disabled={values.length >= maxItems}
|
||||
theme='secondary'
|
||||
block
|
||||
>
|
||||
|
|
Ładowanie…
Reference in New Issue