diff --git a/admin-compliance/app/sdk/iace/[projectId]/tech-file/page.tsx b/admin-compliance/app/sdk/iace/[projectId]/tech-file/page.tsx index f32b923..9aa8ad8 100644 --- a/admin-compliance/app/sdk/iace/[projectId]/tech-file/page.tsx +++ b/admin-compliance/app/sdk/iace/[projectId]/tech-file/page.tsx @@ -1,7 +1,8 @@ 'use client' -import React, { useState, useEffect } from 'react' +import React, { useState, useEffect, useRef } from 'react' import { useParams } from 'next/navigation' +import { TechFileEditor } from '@/components/sdk/iace/TechFileEditor' interface TechFileSection { id: string @@ -67,6 +68,14 @@ const STATUS_CONFIG: Record void onSave: (id: string, content: string) => void }) { - const [editedContent, setEditedContent] = useState(section.content || '') const [editing, setEditing] = useState(false) return ( @@ -111,13 +119,10 @@ function SectionViewer({ )} {editing && ( )} {section.status !== 'approved' && section.content && !editing && ( @@ -136,19 +141,19 @@ function SectionViewer({
- {editing ? ( -