formatting
This commit is contained in:
parent
07f3e4593b
commit
26f744866a
1 changed files with 21 additions and 20 deletions
|
|
@ -235,26 +235,27 @@ const ResourcesTab = ({
|
||||||
<p className="text-sm text-gray-600 dark:text-gray-400">
|
<p className="text-sm text-gray-600 dark:text-gray-400">
|
||||||
{selectedTemplate.description}
|
{selectedTemplate.description}
|
||||||
</p>
|
</p>
|
||||||
{new UriTemplate(selectedTemplate.uriTemplate).variableNames
|
{new UriTemplate(
|
||||||
?.map((key) => {
|
selectedTemplate.uriTemplate,
|
||||||
return (
|
).variableNames?.map((key) => {
|
||||||
<div key={key}>
|
return (
|
||||||
<Label htmlFor={key}>{key}</Label>
|
<div key={key}>
|
||||||
<Combobox
|
<Label htmlFor={key}>{key}</Label>
|
||||||
id={key}
|
<Combobox
|
||||||
placeholder={`Enter ${key}`}
|
id={key}
|
||||||
value={templateValues[key] || ""}
|
placeholder={`Enter ${key}`}
|
||||||
onChange={(value) =>
|
value={templateValues[key] || ""}
|
||||||
handleTemplateValueChange(key, value)
|
onChange={(value) =>
|
||||||
}
|
handleTemplateValueChange(key, value)
|
||||||
onInputChange={(value) =>
|
}
|
||||||
handleTemplateValueChange(key, value)
|
onInputChange={(value) =>
|
||||||
}
|
handleTemplateValueChange(key, value)
|
||||||
options={completions[key] || []}
|
}
|
||||||
/>
|
options={completions[key] || []}
|
||||||
</div>
|
/>
|
||||||
);
|
</div>
|
||||||
})}
|
);
|
||||||
|
})}
|
||||||
<Button
|
<Button
|
||||||
onClick={handleReadTemplateResource}
|
onClick={handleReadTemplateResource}
|
||||||
disabled={Object.keys(templateValues).length === 0}
|
disabled={Object.keys(templateValues).length === 0}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue