mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-21 00:01:22 +02:00
Better header editor and added completion data
This commit is contained in:
11
src-web/components/ParameterEditor.tsx
Normal file
11
src-web/components/ParameterEditor.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { HttpRequest } from '../lib/models';
|
||||
import { PairEditor } from './core/PairEditor';
|
||||
|
||||
type Props = {
|
||||
parameters: { name: string; value: string }[];
|
||||
onChange: (headers: HttpRequest['headers']) => void;
|
||||
};
|
||||
|
||||
export function ParametersEditor({ parameters, onChange }: Props) {
|
||||
return <PairEditor pairs={parameters} onChange={onChange} namePlaceholder="param_name" />;
|
||||
}
|
||||
Reference in New Issue
Block a user