Skip to content

Commit 28310d0

Browse files
committed
fix: param edit layout
1 parent 5eb0a97 commit 28310d0

1 file changed

Lines changed: 13 additions & 15 deletions

File tree

src/components/editor/param-editor.tsx

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Fragment, useEffect, useState } from 'react';
1+
import { useEffect, useState } from 'react';
22

33
import { Param } from '@/types/param.type';
44

@@ -31,20 +31,18 @@ export function ParamEditor({ keys, onChange }: ParamEditorProps) {
3131
{params.length === 0 && (
3232
<p className='text-opacity-50'>Adj a kódhoz paramétereket dupla kapcsos zárójelekkel: {'{{parameter}}'}</p>
3333
)}
34-
<div className='gap-3 columns-2'>
35-
{params.map((param) => (
36-
<Fragment key={param.key}>
37-
<label htmlFor={param.key + '-input'}>{param.key}</label>
38-
<input
39-
id={param.key + '-input'}
40-
type='text'
41-
value={param.value}
42-
className='w-full'
43-
onChange={(e) => setParam(param.key, e.target.value)}
44-
/>
45-
</Fragment>
46-
))}
47-
</div>
34+
{params.map((param) => (
35+
<div className='gap-3 columns-2' key={param.key}>
36+
<label htmlFor={param.key + '-input'}>{param.key}</label>
37+
<input
38+
id={param.key + '-input'}
39+
type='text'
40+
value={param.value}
41+
className='w-full'
42+
onChange={(e) => setParam(param.key, e.target.value)}
43+
/>
44+
</div>
45+
))}
4846
</div>
4947
);
5048
}

0 commit comments

Comments
 (0)