mirror of
https://github.com/shareAI-lab/analysis_claude_code.git
synced 2026-05-06 16:26:16 +08:00
fix(web): remove duplicate "Execution Flow" heading in Deep Dive (#151)
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { motion } from "framer-motion";
|
import { motion } from "framer-motion";
|
||||||
import { useTranslations } from "@/lib/i18n";
|
|
||||||
import { getFlowForVersion } from "@/data/execution-flows";
|
import { getFlowForVersion } from "@/data/execution-flows";
|
||||||
import type { FlowNode, FlowEdge } from "@/types/agent-data";
|
import type { FlowNode, FlowEdge } from "@/types/agent-data";
|
||||||
|
|
||||||
@@ -186,7 +185,6 @@ interface ExecutionFlowProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function ExecutionFlow({ version }: ExecutionFlowProps) {
|
export function ExecutionFlow({ version }: ExecutionFlowProps) {
|
||||||
const t = useTranslations("version");
|
|
||||||
const [flow, setFlow] = useState<ReturnType<typeof getFlowForVersion>>(null);
|
const [flow, setFlow] = useState<ReturnType<typeof getFlowForVersion>>(null);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -198,8 +196,6 @@ export function ExecutionFlow({ version }: ExecutionFlowProps) {
|
|||||||
const maxY = Math.max(...flow.nodes.map((n) => n.y)) + 50;
|
const maxY = Math.max(...flow.nodes.map((n) => n.y)) + 50;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section>
|
|
||||||
<h2 className="mb-4 text-xl font-semibold">{t("execution_flow")}</h2>
|
|
||||||
<div className="overflow-x-auto rounded-xl border border-[var(--color-border)] bg-[var(--color-bg)] p-4">
|
<div className="overflow-x-auto rounded-xl border border-[var(--color-border)] bg-[var(--color-bg)] p-4">
|
||||||
<svg
|
<svg
|
||||||
viewBox={`0 0 600 ${maxY}`}
|
viewBox={`0 0 600 ${maxY}`}
|
||||||
@@ -238,6 +234,5 @@ export function ExecutionFlow({ version }: ExecutionFlowProps) {
|
|||||||
))}
|
))}
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user