@@ -22,56 +22,56 @@ import { getHTMLFile } from '../reducers/files';
2222import Editor from '../components/Editor' ;
2323import { ExitIcon } from '../../../common/icons' ;
2424
25- import PreferencesIcon from '../../../images/preferences.svg' ;
26- import PlayIcon from '../../../images/triangle-arrow-right.svg' ;
25+ import { PreferencesIcon , PlayIcon } from '../../../common/icons' ;
2726
2827import IconButton from '../../../components/mobile/IconButton' ;
2928import Header from '../../../components/mobile/Header' ;
3029import Screen from '../../../components/mobile/MobileScreen' ;
3130import Footer from '../../../components/mobile/Footer' ;
3231import IDEWrapper from '../../../components/mobile/IDEWrapper' ;
3332
34- const IconLinkWrapper = styled ( Link ) `
35- width: 3rem;
36- margin-right: 1.25rem;
37- margin-left: none;
33+ const IconContainer = styled . div `
34+ marginLeft: 2rem;
35+ display: flex;
36+ ` ;
37+
38+ const TitleContainer = styled . div `
39+
3840` ;
3941
4042const isUserOwner = ( { project, user } ) => ( project . owner && project . owner . id === user . id ) ;
4143
4244const MobileIDEView = ( props ) => {
4345 const {
44- preferences, ide, editorAccessibility, project, updateLintMessage, clearLintMessage, selectedFile, updateFileContent, files, closeEditorOptions, showEditorOptions, showKeyboardShortcutModal, setUnsavedChanges, startRefreshSketch, stopSketch, expandSidebar, collapseSidebar, clearConsole, console, showRuntimeErrorWarning, hideRuntimeErrorWarning, startSketch
46+ preferences, ide, editorAccessibility, project, updateLintMessage, clearLintMessage,
47+ selectedFile, updateFileContent, files,
48+ closeEditorOptions, showEditorOptions, showKeyboardShortcutModal, setUnsavedChanges,
49+ startRefreshSketch, stopSketch, expandSidebar, collapseSidebar, clearConsole, console,
50+ showRuntimeErrorWarning, hideRuntimeErrorWarning, startSketch
4551 } = props ;
4652
47- const [ tmController , setTmController ] = useState ( null ) ;
48-
49- const [ overlay , setOverlay ] = useState ( null ) ;
53+ const [ tmController , setTmController ] = useState ( null ) ; // eslint-disable-line
54+ const [ overlay , setOverlay ] = useState ( null ) ; // eslint-disable-line
5055
5156 return (
5257 < Screen fullscreen >
5358 < Header >
54- < IconLinkWrapper to = "/" aria-label = "Return to original editor" >
55- < ExitIcon />
56- </ IconLinkWrapper >
57- < div >
59+ < IconButton to = "/mobile " aria-label = "Return to original editor" >
60+ < ExitIcon viewBox = "0 0 16 16" />
61+ </ IconButton >
62+ < div style = { { marginLeft : '1rem' } } >
5863 < h2 > { project . name } </ h2 >
5964 < h3 > { selectedFile . name } </ h3 >
6065 </ div >
6166
62- < div style = { { marginLeft : '2rem' } } >
63- < Link to = "/mobile/preferences" >
64- < IconButton onClick = { ( ) => setOverlay ( 'preferences' ) } >
65- < PreferencesIcon focusable = "false" aria-hidden = "true" />
66- </ IconButton >
67- </ Link >
68-
69- < Link to = "/mobile/preview" onClick = { ( ) => startSketch ( ) } >
70- < IconButton >
71- < PlayIcon viewBox = "-1 -1 7 7" focusable = "false" aria-hidden = "true" />
72- </ IconButton >
73- </ Link >
74- </ div >
67+ < IconContainer >
68+ < IconButton to = "/mobile/preferences" onClick = { ( ) => setOverlay ( 'preferences' ) } >
69+ < PreferencesIcon focusable = "false" aria-hidden = "true" />
70+ </ IconButton >
71+ < IconButton to = "/mobile/preview" onClick = { ( ) => { startSketch ( ) ; } } >
72+ < PlayIcon viewBox = "-1 -1 7 7" focusable = "false" aria-hidden = "true" />
73+ </ IconButton >
74+ </ IconContainer >
7575 </ Header >
7676
7777 < IDEWrapper >
0 commit comments