Skip to content

Commit 3e3bdc7

Browse files
committed
Run pnpm fix
1 parent aa0bba8 commit 3e3bdc7

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

components/console.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
} from "react";
99
import { useArtifactSelector } from "@/hooks/use-artifact";
1010
import { cn } from "@/lib/utils";
11-
import { Spinner } from "./ui/spinner";
1211
import { CrossSmallIcon, TerminalWindowIcon } from "./icons";
1312
import { Button } from "./ui/button";
13+
import { Spinner } from "./ui/spinner";
1414

1515
export type ConsoleOutputContent = {
1616
type: "text" | "image";

components/message.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import { useState } from "react";
44
import type { Vote } from "@/lib/db/schema";
55
import type { ChatMessage } from "@/lib/types";
66
import { cn, sanitizeText } from "@/lib/utils";
7-
import { useDataStream } from "./data-stream-provider";
8-
import { DocumentToolResult } from "./document";
9-
import { DocumentPreview } from "./document-preview";
107
import { MessageContent, MessageResponse } from "./ai-elements/message";
118
import {
129
Tool,
@@ -15,6 +12,9 @@ import {
1512
ToolInput,
1613
ToolOutput,
1714
} from "./ai-elements/tool";
15+
import { useDataStream } from "./data-stream-provider";
16+
import { DocumentToolResult } from "./document";
17+
import { DocumentPreview } from "./document-preview";
1818
import { SparklesIcon } from "./icons";
1919
import { MessageActions } from "./message-actions";
2020
import { MessageEditor } from "./message-editor";
@@ -139,7 +139,9 @@ const PurePreviewMessage = ({
139139
: undefined
140140
}
141141
>
142-
<MessageResponse>{sanitizeText(part.text)}</MessageResponse>
142+
<MessageResponse>
143+
{sanitizeText(part.text)}
144+
</MessageResponse>
143145
</MessageContent>
144146
</div>
145147
);

components/preview-attachment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import Image from "next/image";
22
import type { Attachment } from "@/lib/types";
3-
import { Spinner } from "./ui/spinner";
43
import { CrossSmallIcon } from "./icons";
54
import { Button } from "./ui/button";
5+
import { Spinner } from "./ui/spinner";
66

77
export const PreviewAttachment = ({
88
attachment,

lib/editor/functions.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ import { createSuggestionWidget, type UISuggestion } from "./suggestions";
1212

1313
export const buildDocumentFromContent = (content: string) => {
1414
const parser = DOMParser.fromSchema(documentSchema);
15-
const stringFromMarkdown = renderToString(<MessageResponse>{content}</MessageResponse>);
15+
const stringFromMarkdown = renderToString(
16+
<MessageResponse>{content}</MessageResponse>
17+
);
1618
const tempContainer = document.createElement("div");
1719
tempContainer.innerHTML = stringFromMarkdown;
1820
return parser.parse(tempContainer);

0 commit comments

Comments
 (0)