Skip to content

Commit 5aa3495

Browse files
committed
👌 fix icon import
1 parent 7f8138a commit 5aa3495

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

client/modules/IDE/pages/IDEViewMobile.jsx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import styled from 'styled-components';
4-
// import { Link } from 'react-router';
4+
import { Link } from 'react-router';
55
import { connect } from 'react-redux';
66
import { withRouter } from 'react-router';
77
import { useState } from 'react';
@@ -21,7 +21,7 @@ import { getHTMLFile } from '../reducers/files';
2121
// Local Imports
2222
import Editor from '../components/Editor';
2323
import { prop, remSize } from '../../../theme';
24-
import CloseIcon from '../../../images/exit.svg';
24+
import { CloseIcon } from '../../../common/Icons';
2525

2626
const background = prop('Button.default.background');
2727
const 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 = {
8282
const isUserOwner = ({ project, user }) => (project.owner && project.owner.id === user.id);
8383

8484
const 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

Comments
 (0)