formatting

This commit is contained in:
dr3s 2025-06-03 13:58:33 -04:00
commit 26f744866a

View file

@ -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}