Url parameters done

This commit is contained in:
Gregory Schier
2023-11-13 10:52:11 -08:00
parent 8a978420be
commit 4470409a24
13 changed files with 308 additions and 238 deletions

View File

@@ -3,17 +3,18 @@ import { PairEditor } from './core/PairEditor';
type Props = {
forceUpdateKey: string;
parameters: { name: string; value: string }[];
onChange: (headers: HttpRequest['headers']) => void;
urlParameters: HttpRequest['headers'];
onChange: (headers: HttpRequest['urlParameters']) => void;
};
export function ParametersEditor({ parameters, forceUpdateKey, onChange }: Props) {
export function UrlParametersEditor({ urlParameters, forceUpdateKey, onChange }: Props) {
return (
<PairEditor
forceUpdateKey={forceUpdateKey}
pairs={parameters}
valueAutocompleteVariables
nameAutocompleteVariables
pairs={urlParameters}
onChange={onChange}
namePlaceholder="name"
forceUpdateKey={forceUpdateKey}
/>
);
}