mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-22 17:39:12 +01:00
Refactor editor to update better
This commit is contained in:
@@ -93,12 +93,7 @@ function FormRow({
|
||||
label="Name"
|
||||
placeholder="name"
|
||||
defaultValue={pair.header.name}
|
||||
onChange={(name) =>
|
||||
onChange({
|
||||
id: pair.id,
|
||||
header: { name },
|
||||
})
|
||||
}
|
||||
onChange={(name) => onChange({ id: pair.id, header: { name } })}
|
||||
/>
|
||||
<Input
|
||||
hideLabel
|
||||
@@ -107,12 +102,7 @@ function FormRow({
|
||||
useEditor={{ useTemplating: true }}
|
||||
placeholder="value"
|
||||
defaultValue={pair.header.value}
|
||||
onChange={(value) =>
|
||||
onChange({
|
||||
id: pair.id,
|
||||
header: { value },
|
||||
})
|
||||
}
|
||||
onChange={(value) => onChange({ id: pair.id, header: { value } })}
|
||||
/>
|
||||
{onDelete && <IconButton icon="trash" onClick={() => onDelete(pair)} className="w-auto" />}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user