File tree 4 files changed +23
-48
lines changed
4 files changed +23
-48
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import PreviewFrame from '../components/PreviewFrame';
11
11
import Console from '../components/Console' ;
12
12
import Toast from '../components/Toast' ;
13
13
import { updateFileContent } from '../actions/files' ;
14
- import { stopSketch } from '../actions/ide' ;
14
+
15
15
import {
16
16
autosaveProject ,
17
17
clearPersistedState ,
@@ -80,7 +80,7 @@ const IDEView = () => {
80
80
81
81
const [ consoleSize , setConsoleSize ] = useState ( 150 ) ;
82
82
const [ sidebarSize , setSidebarSize ] = useState ( 160 ) ;
83
- const [ isOverlayVisible , setIsOverlayVisible ] = useState ( true ) ;
83
+ const [ isOverlayVisible , setIsOverlayVisible ] = useState ( false ) ;
84
84
85
85
const cmRef = useRef ( { } ) ;
86
86
@@ -93,8 +93,6 @@ const IDEView = () => {
93
93
94
94
useEffect ( ( ) => {
95
95
dispatch ( clearPersistedState ( ) ) ;
96
-
97
- dispatch ( stopSketch ( ) ) ;
98
96
} , [ dispatch ] ) ;
99
97
100
98
useEffect ( ( ) => {
@@ -160,7 +158,6 @@ const IDEView = () => {
160
158
setIsOverlayVisible ( true ) ;
161
159
} }
162
160
onDragFinished = { ( ) => {
163
- // overlayRef.current.style.display = 'none';
164
161
setIsOverlayVisible ( false ) ;
165
162
} }
166
163
resizerStyle = { {
Original file line number Diff line number Diff line change @@ -48,8 +48,10 @@ const withParams = (Component) => (props) => (
48
48
const Route = ( { component, ...props } ) => (
49
49
< RouterRoute component = { withParams ( component ) } { ...props } />
50
50
) ;
51
- Route . propTypes = { ...RouterRoute . propTypes } ;
52
- Route . propTypes . component = PropTypes . elementType . isRequired ;
51
+ Route . propTypes = {
52
+ ...RouterRoute . propTypes ,
53
+ component : PropTypes . elementType . isRequired
54
+ } ;
53
55
54
56
const routes = (
55
57
< Switch >
Original file line number Diff line number Diff line change 96
96
"@babel/plugin-transform-react-inline-elements" : " ^7.14.5" ,
97
97
"@babel/preset-env" : " ^7.14.7" ,
98
98
"@babel/preset-react" : " ^7.14.5" ,
99
- "@pmmmwh/react-refresh-webpack-plugin" : " ^0.5.10" ,
100
99
"@storybook/addon-actions" : " ^7.0.24" ,
101
100
"@storybook/addon-docs" : " ^7.0.24" ,
102
101
"@storybook/addon-essentials" : " ^7.0.27" ,
159
158
"@babel/register" : " ^7.14.5" ,
160
159
"@emmetio/codemirror-plugin" : " ^1.2.4" ,
161
160
"@gatsbyjs/webpack-hot-middleware" : " ^2.25.3" ,
161
+ "@pmmmwh/react-refresh-webpack-plugin" : " ^0.5.11" ,
162
162
"@redux-devtools/core" : " ^3.11.0" ,
163
163
"@redux-devtools/dock-monitor" : " ^2.1.0" ,
164
164
"@redux-devtools/log-monitor" : " ^3.1.0" ,
You can’t perform that action at this time.
0 commit comments