Skip to content

Commit b33421c

Browse files
committed
OLS-2722: address review comments
1 parent 6992f0c commit b33421c

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/components/OlsToolUIs.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ type OlsToolUIProps = {
1010
toolUIComponent: OlsToolUIComponent;
1111
};
1212

13-
export const OlsToolUI: React.FC<OlsToolUIProps> = ({ tool, toolUIComponent: toolUIElement }) => {
14-
const ToolComponent = toolUIElement;
15-
return <ToolComponent tool={tool} />;
16-
};
13+
export const OlsToolUI: React.FC<OlsToolUIProps> = ({ tool, toolUIComponent: ToolComponent }) => (
14+
<ToolComponent tool={tool} />
15+
);
1716

1817
type OlsUIToolsProps = {
1918
entryIndex: number;

src/hooks/useToolUIMapping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
import type { OlsToolUIComponent } from '../types';
99

1010
type ToolUIExtensionProperties = {
11-
/** Id of the component (as refferrenced by the mcp tool) */
11+
/** ID of the component (as refferrenced by the MCP tool) */
1212
id: string;
1313
/** The component to be rendered when the MCP tool matches. */
1414
component: CodeRef<OlsToolUIComponent>;

0 commit comments

Comments
 (0)