File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,12 @@ import InfoIcon from "@mui/icons-material/Info";
51
51
import AccountTreeIcon from "@mui/icons-material/AccountTree" ;
52
52
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft" ;
53
53
import SettingsIcon from "@mui/icons-material/Settings" ;
54
+ import { MenuBook } from "@mui/icons-material" ;
55
+ import ManualPanel from "./components/ManualPanel" ;
54
56
55
57
type EditorView = "all" | "inbound" | "outbound" ;
56
58
type EditorTab = "chain" | "route" ;
57
- type SidebarView = "nodeEditor" | "info" | "controlPanel" ;
59
+ type SidebarView = "nodeEditor" | "info" | "controlPanel" | "manual" ;
58
60
59
61
// interface GroupNodeData {
60
62
// type: "group";
@@ -765,6 +767,9 @@ export default function App() {
765
767
return < ControlPanel /> ;
766
768
}
767
769
770
+ if ( currentSidebarView === "manual" ) {
771
+ return < ManualPanel /> ;
772
+ }
768
773
return (
769
774
< >
770
775
< Box sx = { { borderBottom : 1 , borderColor : "divider" , mb : 2 } } >
@@ -895,6 +900,16 @@ export default function App() {
895
900
</ ListItemIcon >
896
901
< ListItemText primary = "Node Editor" />
897
902
</ 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 >
898
913
</ List >
899
914
</ Drawer >
900
915
< Box
You can’t perform that action at this time.
0 commit comments