mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 19:26:54 +08:00
fix
This commit is contained in:
@@ -21,8 +21,6 @@ import {
|
||||
} from "./artifacts";
|
||||
import { useChatStore } from "../store";
|
||||
import { IconButton } from "./button";
|
||||
import { SAAS_CHAT_URL } from "@/app/constant";
|
||||
import { trackConversationGuideToCPaymentClick } from "../utils/auth-settings-events";
|
||||
export function Mermaid(props: { code: string }) {
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
const [hasError, setHasError] = useState(false);
|
||||
@@ -281,13 +279,7 @@ function _MarkDownContent(props: { content: string }) {
|
||||
const href = aProps.href || "";
|
||||
const isInternal = /^\/#/i.test(href);
|
||||
const target = isInternal ? "_self" : aProps.target ?? "_blank";
|
||||
const handleClick = () => {
|
||||
if (href === SAAS_CHAT_URL) {
|
||||
trackConversationGuideToCPaymentClick();
|
||||
}
|
||||
};
|
||||
|
||||
return <a {...aProps} target={target} onClick={handleClick} />;
|
||||
return <a {...aProps} target={target} />;
|
||||
},
|
||||
}}
|
||||
>
|
||||
|
Reference in New Issue
Block a user