This commit is contained in:
Anton 2023-08-22 19:42:06 +02:00
parent a68d4951af
commit 24e8c984d8

View File

@ -84,7 +84,10 @@ export function ItemFormPopup(props: ItemFormPopupProps) {
}}
position={props.position}>
<form ref={formRef} onReset={resetPopup} onSubmit={e => handleSubmit(e)}>
{props.item ? <div className='tw-h-2'></div>
:
<div className='tw-flex tw-justify-center'><b className="tw-text-xl tw-font-bold">New {props.layer.name}</b></div>
}
<TextInput type="text" placeholder="Name" dataField="name" defaultValue={props.item ? props.item.name : ""} inputStyle='' />
{props.children ?