mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 11:18:22 +00:00
fix(frontend): lint error of frontend
This commit is contained in:
parent
772538ddba
commit
0c21cbf01f
@ -1,6 +1,11 @@
|
||||
import type { Message } from "@langchain/langgraph-sdk";
|
||||
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 { Loader } from "@/components/ai-elements/loader";
|
||||
@ -130,7 +135,14 @@ function MessageContent_({
|
||||
a: ({ href, ...props }: AnchorHTMLAttributes<HTMLAnchorElement>) => {
|
||||
if (href && href.startsWith("/mnt/")) {
|
||||
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} />;
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user