-
updateKeyValuePair(index, 'key', e.target.value, type)}
- disabled={isLoading}
- className="h-auto py-2 font-mono rounded-none shadow-none bg-transparent border-l-0 border-r-1 border-t-0 border-b-0 border-border"
+ {(type === 'headers' ? headerFields : queryParamFields).map((field, index) => (
+
+
(
+
+
+
+ )}
/>
- updateKeyValuePair(index, 'value', e.target.value, type)}
- disabled={isLoading}
- className="h-auto py-2 font-mono rounded-none shadow-none bg-transparent border-none"
+ (
+
+
+
+ )}
/>
- {items.length > 1 && (
+ {(type === 'headers' ? headerFields : queryParamFields).length > 1 && (