mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-23 16:35:59 +00:00
fix(frontend): lint error of frontend
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
import type { Message } from "@langchain/langgraph-sdk";
|
import type { Message } from "@langchain/langgraph-sdk";
|
||||||
import { FileIcon, Loader2Icon } from "lucide-react";
|
import { FileIcon, Loader2Icon } from "lucide-react";
|
||||||
import { memo, useMemo, type AnchorHTMLAttributes, type ImgHTMLAttributes } from "react";
|
import {
|
||||||
|
memo,
|
||||||
|
useMemo,
|
||||||
|
type AnchorHTMLAttributes,
|
||||||
|
type ImgHTMLAttributes,
|
||||||
|
} from "react";
|
||||||
import rehypeKatex from "rehype-katex";
|
import rehypeKatex from "rehype-katex";
|
||||||
|
|
||||||
import { Loader } from "@/components/ai-elements/loader";
|
import { Loader } from "@/components/ai-elements/loader";
|
||||||
@@ -130,7 +135,14 @@ function MessageContent_({
|
|||||||
a: ({ href, ...props }: AnchorHTMLAttributes<HTMLAnchorElement>) => {
|
a: ({ href, ...props }: AnchorHTMLAttributes<HTMLAnchorElement>) => {
|
||||||
if (href && href.startsWith("/mnt/")) {
|
if (href && href.startsWith("/mnt/")) {
|
||||||
const url = resolveArtifactURL(href, threadId);
|
const url = resolveArtifactURL(href, threadId);
|
||||||
return <a {...props} href={url} target="_blank" rel="noopener noreferrer" />;
|
return (
|
||||||
|
<a
|
||||||
|
{...props}
|
||||||
|
href={url}
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
/>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
return <a {...props} href={href} />;
|
return <a {...props} href={href} />;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user