Skip to content

Commit d25d27c

Browse files
committed
Fixed lint errors
1 parent 99fdced commit d25d27c

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
@@ -62,7 +62,9 @@ export const DeepThinking: FunctionComponent<DeepThinkingProps> = ({
6262

6363
const renderToggleContent = () => {
6464
if (isToggleContentMarkdown && typeof toggleContent === 'string') {
65-
return <MarkdownContent shouldRetainStyles={shouldRetainStyles} content={toggleContent} {...markdownContentProps} />;
65+
return (
66+
<MarkdownContent shouldRetainStyles={shouldRetainStyles} content={toggleContent} {...markdownContentProps} />
67+
);
6668
}
6769
return toggleContent;
6870
};

packages/module/src/ToolCall/ToolCall.tsx

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

128128
const renderExpandableContent = () => {
129129
if (isExpandableContentMarkdown && typeof expandableContent === 'string') {
130-
return <MarkdownContent shouldRetainStyles={shouldRetainStyles} content={expandableContent} {...markdownContentProps} />;
130+
return (
131+
<MarkdownContent
132+
shouldRetainStyles={shouldRetainStyles}
133+
content={expandableContent}
134+
{...markdownContentProps}
135+
/>
136+
);
131137
}
132138
return expandableContent;
133139
};

packages/module/src/ToolResponse/ToolResponse.tsx

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

9191
const renderToggleContent = () => {
9292
if (isToggleContentMarkdown && typeof toggleContent === 'string') {
93-
return <MarkdownContent shouldRetainStyles={shouldRetainStyles} content={toggleContent} {...markdownContentProps} />;
93+
return (
94+
<MarkdownContent shouldRetainStyles={shouldRetainStyles} content={toggleContent} {...markdownContentProps} />
95+
);
9496
}
9597
return toggleContent;
9698
};

0 commit comments

Comments
 (0)