mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 03:11:12 +01:00
GraphQL query editor transformer works!
This commit is contained in:
@@ -81,13 +81,11 @@ function FormRow({
|
||||
pair,
|
||||
onChange,
|
||||
onDelete,
|
||||
onFocus,
|
||||
isLast,
|
||||
}: {
|
||||
pair: PairWithId;
|
||||
onChange: (pair: PairWithId) => void;
|
||||
onDelete?: (pair: PairWithId) => void;
|
||||
onFocus?: (pair: PairWithId) => void;
|
||||
isLast?: boolean;
|
||||
}) {
|
||||
return (
|
||||
@@ -99,7 +97,6 @@ function FormRow({
|
||||
label="Name"
|
||||
name="name"
|
||||
onChange={(name) => onChange({ id: pair.id, header: { name } })}
|
||||
onFocus={() => onFocus?.(pair)}
|
||||
placeholder="name"
|
||||
useEditor={{ useTemplating: true }}
|
||||
/>
|
||||
@@ -110,7 +107,6 @@ function FormRow({
|
||||
label="Value"
|
||||
name="value"
|
||||
onChange={(value) => onChange({ id: pair.id, header: { value } })}
|
||||
onFocus={() => onFocus?.(pair)}
|
||||
placeholder="value"
|
||||
useEditor={{ useTemplating: true }}
|
||||
/>
|
||||
@@ -118,7 +114,8 @@ function FormRow({
|
||||
<IconButton
|
||||
icon="trash"
|
||||
onClick={() => onDelete(pair)}
|
||||
className="invisible group-hover:visible"
|
||||
tabIndex={-1}
|
||||
className={classnames('opacity-0 group-hover:opacity-100')}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user