11import React from 'react' ;
22import PropTypes from 'prop-types' ;
33import styled from 'styled-components' ;
4- // import { Link } from 'react-router';
4+ import { Link } from 'react-router' ;
55import { connect } from 'react-redux' ;
66import { withRouter } from 'react-router' ;
77import { useState } from 'react' ;
@@ -21,7 +21,7 @@ import { getHTMLFile } from '../reducers/files';
2121// Local Imports
2222import Editor from '../components/Editor' ;
2323import { prop , remSize } from '../../../theme' ;
24- import CloseIcon from '../../../images/exit.svg ' ;
24+ import { CloseIcon } from '../../../common/Icons ' ;
2525
2626const background = prop ( 'Button.default.background' ) ;
2727const textColor = prop ( 'primaryTextColor' ) ;
@@ -40,7 +40,7 @@ const Header = styled.div`
4040 display: flex;
4141 flex: 1;
4242 flex-direction: row;
43- // justify-content: space-between ;
43+ justify-content: flex-start ;
4444 align-items: center;
4545` ;
4646
@@ -82,7 +82,6 @@ Screen.propTypes = {
8282const isUserOwner = ( { project, user } ) => ( project . owner && project . owner . id === user . id ) ;
8383
8484const IDEViewMobile = ( props ) => {
85- // const
8685 const {
8786 preferences, ide, editorAccessibility, project, updateLintMessage, clearLintMessage, selectedFile, updateFileContent, files, closeEditorOptions, showEditorOptions, showKeyboardShortcutModal, setUnsavedChanges, startRefreshSketch, stopSketch, expandSidebar, collapseSidebar, clearConsole, console, showRuntimeErrorWarning, hideRuntimeErrorWarning
8887 } = props ;
@@ -92,18 +91,14 @@ const IDEViewMobile = (props) => {
9291 return (
9392 < Screen >
9493 < 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 >
9597 < div >
9698 < h2 > { project . name } </ h2 >
9799 < h3 > { selectedFile . name } </ h3 >
98100 </ div >
99- < Icon href = "/" >
100- < CloseIcon focusable = "false" aria-hidden = "true" />
101- </ Icon >
102101 </ 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> */ }
107102
108103 < Content >
109104 < Editor
0 commit comments