删除 FormCard 无人传入的 action 扩展点

- export/tabs/xiaohongshu/FormCard.tsx 的 FieldRow 移除 action prop 及其渲染分支与 ReactNode 导入
This commit is contained in:
2026-10-06 18:56:44 +08:00
parent 433baadb4b
commit f27aface7a
@@ -1,5 +1,4 @@
import { Download, Images, Sparkles } from 'lucide-react';
import type { ReactNode } from 'react';
import { useId, useState } from 'react';
import { AssetImporter } from '../../../../../components/AssetImporter';
@@ -112,7 +111,6 @@ function FieldRow({
copyable,
value,
error,
action,
onChange,
}: {
label: string;
@@ -122,7 +120,6 @@ function FieldRow({
copyable: boolean;
value: string;
error: string | null;
action?: ReactNode;
onChange: (value: string) => void;
}) {
const id = useId();
@@ -168,7 +165,6 @@ function FieldRow({
onChange={(event) => onChange(event.target.value)}
/>
)}
{action ? <div className="flex">{action}</div> : null}
{error ? (
<p role="alert" className="text-xs font-medium text-[#c7653d]">
{error}