Update frontend/src/App.tsx
Browse files- frontend/src/App.tsx +3 -0
frontend/src/App.tsx
CHANGED
|
@@ -13,6 +13,7 @@ import { ProtocolList } from "./components/ProtocolList";
|
|
| 13 |
import { ExportBackupButton } from "./components/ExportBackupButton";
|
| 14 |
import { ImportBackupPanel } from "./components/ImportBackupPanel";
|
| 15 |
import type { Protocol, ProtocolDraft } from "./types";
|
|
|
|
| 16 |
|
| 17 |
type View = { name: "list" } | { name: "new" } | { name: "detail"; id: string };
|
| 18 |
|
|
@@ -103,7 +104,9 @@ export default function App() {
|
|
| 103 |
onLock={() => handleLock(selected.id)}
|
| 104 |
onAmend={(changes, reason) => handleAmend(selected.id, changes, reason)}
|
| 105 |
onDelete={() => handleDelete(selected.id)}
|
|
|
|
| 106 |
/>
|
|
|
|
| 107 |
</>
|
| 108 |
) : (
|
| 109 |
<p className="empty-state">Protocol not found.</p>
|
|
|
|
| 13 |
import { ExportBackupButton } from "./components/ExportBackupButton";
|
| 14 |
import { ImportBackupPanel } from "./components/ImportBackupPanel";
|
| 15 |
import type { Protocol, ProtocolDraft } from "./types";
|
| 16 |
+
import { PdfLibraryPanel } from "./components/PdfLibraryPanel";
|
| 17 |
|
| 18 |
type View = { name: "list" } | { name: "new" } | { name: "detail"; id: string };
|
| 19 |
|
|
|
|
| 104 |
onLock={() => handleLock(selected.id)}
|
| 105 |
onAmend={(changes, reason) => handleAmend(selected.id, changes, reason)}
|
| 106 |
onDelete={() => handleDelete(selected.id)}
|
| 107 |
+
|
| 108 |
/>
|
| 109 |
+
<PdfLibraryPanel protocolId={selected.id} />
|
| 110 |
</>
|
| 111 |
) : (
|
| 112 |
<p className="empty-state">Protocol not found.</p>
|