File tree Expand file tree Collapse file tree 3 files changed +19
-8
lines changed Expand file tree Collapse file tree 3 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import Close from '../images/close.svg';
9
9
import DropdownArrow from '../images/down-filled-triangle.svg' ;
10
10
import Play from '../images/triangle-arrow-right.svg' ;
11
11
import Preferences from '../images/preferences.svg' ;
12
+ import Exit from '../images/exit.svg' ;
12
13
13
14
14
15
// HOC that adds the right web accessibility props
@@ -54,3 +55,4 @@ export const CloseIcon = withLabel(Close);
54
55
export const DropdownArrowIcon = withLabel ( DropdownArrow ) ;
55
56
export const PlayIcon = withLabel ( Play ) ;
56
57
export const PreferencesIcon = withLabel ( Preferences ) ;
58
+ export const ExitIcon = withLabel ( Exit ) ;
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import Header from '../../../components/mobile/Header';
31
31
import Screen from '../../../components/mobile/MobileScreen' ;
32
32
import Footer from '../../../components/mobile/Footer' ;
33
33
34
- const background = prop ( 'Button.default.background' ) ;
35
34
const textColor = prop ( 'primaryTextColor' ) ;
36
35
37
36
const Content = styled . div `
@@ -79,9 +78,11 @@ const IDEViewMobile = (props) => {
79
78
< IconButton onClick = { ( ) => setOverlay ( 'preferences' ) } >
80
79
< PreferencesIcon focusable = "false" aria-hidden = "true" />
81
80
</ IconButton >
82
- < IconButton onClick = { ( ) => setOverlay ( 'runSketch' ) } >
83
- < PlayIcon viewBox = "-1 -1 7 7" focusable = "false" aria-hidden = "true" />
84
- </ IconButton >
81
+ < Link to = "/mobile/preview" >
82
+ < IconButton >
83
+ < PlayIcon viewBox = "-1 -1 7 7" focusable = "false" aria-hidden = "true" />
84
+ </ IconButton >
85
+ </ Link >
85
86
</ div >
86
87
</ Header >
87
88
Original file line number Diff line number Diff line change 1
1
import React , { useState } from 'react' ;
2
-
2
+ import { Link } from 'react-router' ;
3
+ import styled from 'styled-components' ;
3
4
import Header from '../../components/mobile/Header' ;
4
5
import Screen from '../../components/mobile/MobileScreen' ;
6
+ import { ExitIcon } from '../../common/Icons' ;
7
+
8
+ const IconLinkWrapper = styled ( Link ) `
9
+ width: 2rem;
10
+ margin-right: 1.25rem;
11
+ margin-left: none;
12
+ ` ;
5
13
6
14
const MobileSketchView = ( props ) => {
7
15
const [ overlay , setOverlay ] = useState ( null ) ;
8
16
return (
9
17
< Screen >
10
18
< Header >
11
- { /* <IconLinkWrapper to="/mobile" aria-label="Return to original editor">
12
- <CloseIcon viewBox="20 21 60 60 " />
13
- </IconLinkWrapper> */ }
19
+ < IconLinkWrapper to = "/mobile" aria-label = "Return to original editor" >
20
+ < ExitIcon viewBox = "0 0 16 16 " />
21
+ </ IconLinkWrapper >
14
22
< div >
15
23
< h2 > Hello</ h2 >
16
24
{ /* <h3>{selectedFile.name}</h3> */ }
You can’t perform that action at this time.
0 commit comments