1
1
import React from 'react' ;
2
2
import PropTypes from 'prop-types' ;
3
3
import styled from 'styled-components' ;
4
- // import { Link } from 'react-router';
4
+ import { Link } from 'react-router' ;
5
5
import { connect } from 'react-redux' ;
6
6
import { withRouter } from 'react-router' ;
7
7
import { useState } from 'react' ;
@@ -21,7 +21,7 @@ import { getHTMLFile } from '../reducers/files';
21
21
// Local Imports
22
22
import Editor from '../components/Editor' ;
23
23
import { prop , remSize } from '../../../theme' ;
24
- import CloseIcon from '../../../images/exit.svg ' ;
24
+ import { CloseIcon } from '../../../common/Icons ' ;
25
25
26
26
const background = prop ( 'Button.default.background' ) ;
27
27
const textColor = prop ( 'primaryTextColor' ) ;
@@ -40,7 +40,7 @@ const Header = styled.div`
40
40
display: flex;
41
41
flex: 1;
42
42
flex-direction: row;
43
- // justify-content: space-between ;
43
+ justify-content: flex-start ;
44
44
align-items: center;
45
45
` ;
46
46
@@ -82,7 +82,6 @@ Screen.propTypes = {
82
82
const isUserOwner = ( { project, user } ) => ( project . owner && project . owner . id === user . id ) ;
83
83
84
84
const IDEViewMobile = ( props ) => {
85
- // const
86
85
const {
87
86
preferences, ide, editorAccessibility, project, updateLintMessage, clearLintMessage, selectedFile, updateFileContent, files, closeEditorOptions, showEditorOptions, showKeyboardShortcutModal, setUnsavedChanges, startRefreshSketch, stopSketch, expandSidebar, collapseSidebar, clearConsole, console, showRuntimeErrorWarning, hideRuntimeErrorWarning
88
87
} = props ;
@@ -92,18 +91,14 @@ const IDEViewMobile = (props) => {
92
91
return (
93
92
< Screen >
94
93
< Header >
94
+ < Link to = "/" style = { { width : '3rem' , marginRight : '1.25rem' } } >
95
+ < CloseIcon viewBox = "20 21 60 60" aria-hidden = "true" aria-label = "close header" />
96
+ </ Link >
95
97
< div >
96
98
< h2 > { project . name } </ h2 >
97
99
< h3 > { selectedFile . name } </ h3 >
98
100
</ div >
99
- < Icon href = "/" >
100
- < CloseIcon focusable = "false" aria-hidden = "true" />
101
- </ Icon >
102
101
</ Header >
103
- { /* <div>
104
- { [preferences, ide, editorAccessibility, project, updateLintMessage, clearLintMessage, selectedFile, updateFileContent, files, closeEditorOptions, showEditorOptions, showKeyboardShortcutModal, setUnsavedChanges, startRefreshSketch, stopSketch, expandSidebar, collapseSidebar, clearConsole, console, showRuntimeErrorWarning, hideRuntimeErrorWarning]
105
- .map(pr => <h5>{pr.toString()}</h5>) }
106
- </div> */ }
107
102
108
103
< Content >
109
104
< Editor
0 commit comments