@@ -67,13 +67,9 @@ const MobileIDEView = (props) => {
6767 } = props ;
6868
6969 const [ tmController , setTmController ] = useState ( null ) ; // eslint-disable-line
70- const [ overlayName , setOverlay ] = useState ( null ) ; // eslint-disable-line
7170
72- // TODO: Move this to OverlayController (?)
73- const hideOverlay = ( ) => setOverlay ( null ) ;
74- // const overlayRef = useRef({});
7571
76- const [ triggerNavDropdown , NavDropDown ] = useAsModal ( < Dropdown items = { headerNavOptions } /> ) ;
72+ const [ triggerNavDropdown , NavDropDown ] = useAsModal ( < Dropdown right items = { headerNavOptions } /> ) ;
7773
7874 return (
7975 < Screen fullscreen >
@@ -84,12 +80,17 @@ const MobileIDEView = (props) => {
8480 < IconButton to = "/mobile" icon = { ExitIcon } aria-label = "Return to original editor" />
8581 }
8682 >
87- < IconButton
88- onClick = { triggerNavDropdown }
89- icon = { MoreIcon }
90- aria-label = "Options"
91- />
92- < IconButton to = "/mobile/preview" onClick = { ( ) => { startSketch ( ) ; } } icon = { PlayIcon } aria-label = "Run sketch" />
83+ < li style = { { position : 'relative' } } >
84+ < IconButton
85+ onClick = { triggerNavDropdown }
86+ icon = { MoreIcon }
87+ aria-label = "Options"
88+ />
89+ < NavDropDown />
90+ </ li >
91+ < li >
92+ < IconButton to = "/mobile/preview" onClick = { ( ) => { startSketch ( ) ; } } icon = { PlayIcon } aria-label = "Run sketch" />
93+ </ li >
9394 </ Header >
9495
9596 < IDEWrapper >
@@ -107,9 +108,7 @@ const MobileIDEView = (props) => {
107108 editorOptionsVisible = { ide . editorOptionsVisible }
108109 showEditorOptions = { showEditorOptions }
109110 closeEditorOptions = { closeEditorOptions }
110- showKeyboardShortcutModal = { showKeyboardShortcutModal }
111- setUnsavedChanges = { setUnsavedChanges }
112- isPlaying = { ide . isPlaying }
111+ showKeyboard = { ide . isPlaying }
113112 theme = { preferences . theme }
114113 startRefreshSketch = { startRefreshSketch }
115114 stopSketch = { stopSketch }
@@ -133,12 +132,6 @@ const MobileIDEView = (props) => {
133132 { ide . consoleIsExpanded && < Expander expanded > < Console /> </ Expander > }
134133 < ActionStrip />
135134 </ Footer >
136- < NavDropDown />
137- { /* <OverlayManager
138- // ref={overlayRef}
139- overlay={overlayName}
140- hideOverlay={hideOverlay}
141- /> */ }
142135 </ Screen >
143136 ) ;
144137} ;
0 commit comments