Skip to content

Commit 0e98c9c

Browse files
committed
edit App.tsx
1 parent 9b18958 commit 0e98c9c

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/App.tsx

+16-1
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ import InfoIcon from "@mui/icons-material/Info";
5151
import AccountTreeIcon from "@mui/icons-material/AccountTree";
5252
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
5353
import SettingsIcon from "@mui/icons-material/Settings";
54+
import { MenuBook } from "@mui/icons-material";
55+
import ManualPanel from "./components/ManualPanel";
5456

5557
type EditorView = "all" | "inbound" | "outbound";
5658
type EditorTab = "chain" | "route";
57-
type SidebarView = "nodeEditor" | "info" | "controlPanel";
59+
type SidebarView = "nodeEditor" | "info" | "controlPanel" | "manual";
5860

5961
// interface GroupNodeData {
6062
// type: "group";
@@ -765,6 +767,9 @@ export default function App() {
765767
return <ControlPanel />;
766768
}
767769

770+
if (currentSidebarView === "manual") {
771+
return <ManualPanel />;
772+
}
768773
return (
769774
<>
770775
<Box sx={{ borderBottom: 1, borderColor: "divider", mb: 2 }}>
@@ -895,6 +900,16 @@ export default function App() {
895900
</ListItemIcon>
896901
<ListItemText primary="Node Editor" />
897902
</ListItemButton>
903+
904+
<ListItemButton
905+
selected={currentSidebarView === "manual"}
906+
onClick={() => setSidebarView("manual")}
907+
>
908+
<ListItemIcon>
909+
<MenuBook />
910+
</ListItemIcon>
911+
<ListItemText primary="Manual" />
912+
</ListItemButton>
898913
</List>
899914
</Drawer>
900915
<Box

0 commit comments

Comments
 (0)