|
|
@@ -23,6 +23,7 @@ interface Step5ReviewSubmitProps {
|
|
|
onComplete: (chapterTitle: string) => void;
|
|
|
onBack: () => void;
|
|
|
autoMode?: boolean;
|
|
|
+ initialTitle?: string;
|
|
|
}
|
|
|
|
|
|
function DiffViewer({
|
|
|
@@ -186,8 +187,9 @@ export default function Step5ReviewSubmit({
|
|
|
onComplete,
|
|
|
onBack,
|
|
|
autoMode = false,
|
|
|
+ initialTitle,
|
|
|
}: Step5ReviewSubmitProps) {
|
|
|
- const [chapterTitle, setChapterTitle] = useState(`第${chapterIndex}章`);
|
|
|
+ const [chapterTitle, setChapterTitle] = useState(initialTitle || `第${chapterIndex}章`);
|
|
|
const [hasStartedUpdate, setHasStartedUpdate] = useState(false);
|
|
|
const [isSaving, setIsSaving] = useState(false);
|
|
|
const [saveSuccess, setSaveSuccess] = useState(false);
|