Skip to content

Commit 3914c9d

Browse files
committed
Fixed lint errors
1 parent 11e5e7b commit 3914c9d

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

packages/module/src/DeepThinking/DeepThinking.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ export const DeepThinking: FunctionComponent<DeepThinkingProps> = ({
5959

6060
const renderToggleContent = () => {
6161
if (isToggleContentMarkdown && typeof toggleContent === 'string') {
62-
return <MarkdownContent shouldRetainStyles={shouldRetainStyles} content={toggleContent} {...markdownContentProps} />;
62+
return (
63+
<MarkdownContent shouldRetainStyles={shouldRetainStyles} content={toggleContent} {...markdownContentProps} />
64+
);
6365
}
6466
return toggleContent;
6567
};

packages/module/src/ToolCall/ToolCall.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,13 @@ export const ToolCall: FunctionComponent<ToolCallProps> = ({
118118

119119
const renderExpandableContent = () => {
120120
if (isExpandableContentMarkdown && typeof expandableContent === 'string') {
121-
return <MarkdownContent shouldRetainStyles={shouldRetainStyles} content={expandableContent} {...markdownContentProps} />;
121+
return (
122+
<MarkdownContent
123+
shouldRetainStyles={shouldRetainStyles}
124+
content={expandableContent}
125+
{...markdownContentProps}
126+
/>
127+
);
122128
}
123129
return expandableContent;
124130
};

packages/module/src/ToolResponse/ToolResponse.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ export const ToolResponse: FunctionComponent<ToolResponseProps> = ({
8787

8888
const renderToggleContent = () => {
8989
if (isToggleContentMarkdown && typeof toggleContent === 'string') {
90-
return <MarkdownContent shouldRetainStyles={shouldRetainStyles} content={toggleContent} {...markdownContentProps} />;
90+
return (
91+
<MarkdownContent shouldRetainStyles={shouldRetainStyles} content={toggleContent} {...markdownContentProps} />
92+
);
9193
}
9294
return toggleContent;
9395
};

0 commit comments

Comments
 (0)