File tree Expand file tree Collapse file tree 4 files changed +23
-48
lines changed Expand file tree Collapse file tree 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';
1111import Console from '../components/Console' ;
1212import Toast from '../components/Toast' ;
1313import { updateFileContent } from '../actions/files' ;
14- import { stopSketch } from '../actions/ide' ;
14+
1515import {
1616 autosaveProject ,
1717 clearPersistedState ,
@@ -80,7 +80,7 @@ const IDEView = () => {
8080
8181 const [ consoleSize , setConsoleSize ] = useState ( 150 ) ;
8282 const [ sidebarSize , setSidebarSize ] = useState ( 160 ) ;
83- const [ isOverlayVisible , setIsOverlayVisible ] = useState ( true ) ;
83+ const [ isOverlayVisible , setIsOverlayVisible ] = useState ( false ) ;
8484
8585 const cmRef = useRef ( { } ) ;
8686
@@ -93,8 +93,6 @@ const IDEView = () => {
9393
9494 useEffect ( ( ) => {
9595 dispatch ( clearPersistedState ( ) ) ;
96-
97- dispatch ( stopSketch ( ) ) ;
9896 } , [ dispatch ] ) ;
9997
10098 useEffect ( ( ) => {
@@ -160,7 +158,6 @@ const IDEView = () => {
160158 setIsOverlayVisible ( true ) ;
161159 } }
162160 onDragFinished = { ( ) => {
163- // overlayRef.current.style.display = 'none';
164161 setIsOverlayVisible ( false ) ;
165162 } }
166163 resizerStyle = { {
Original file line number Diff line number Diff line change @@ -48,8 +48,10 @@ const withParams = (Component) => (props) => (
4848const Route = ( { component, ...props } ) => (
4949 < RouterRoute component = { withParams ( component ) } { ...props } />
5050) ;
51- Route . propTypes = { ...RouterRoute . propTypes } ;
52- Route . propTypes . component = PropTypes . elementType . isRequired ;
51+ Route . propTypes = {
52+ ...RouterRoute . propTypes ,
53+ component : PropTypes . elementType . isRequired
54+ } ;
5355
5456const routes = (
5557 < Switch >
Original file line number Diff line number Diff line change 9696 "@babel/plugin-transform-react-inline-elements" : " ^7.14.5" ,
9797 "@babel/preset-env" : " ^7.14.7" ,
9898 "@babel/preset-react" : " ^7.14.5" ,
99- "@pmmmwh/react-refresh-webpack-plugin" : " ^0.5.10" ,
10099 "@storybook/addon-actions" : " ^7.0.24" ,
101100 "@storybook/addon-docs" : " ^7.0.24" ,
102101 "@storybook/addon-essentials" : " ^7.0.27" ,
159158 "@babel/register" : " ^7.14.5" ,
160159 "@emmetio/codemirror-plugin" : " ^1.2.4" ,
161160 "@gatsbyjs/webpack-hot-middleware" : " ^2.25.3" ,
161+ "@pmmmwh/react-refresh-webpack-plugin" : " ^0.5.11" ,
162162 "@redux-devtools/core" : " ^3.11.0" ,
163163 "@redux-devtools/dock-monitor" : " ^2.1.0" ,
164164 "@redux-devtools/log-monitor" : " ^3.1.0" ,
You can’t perform that action at this time.
0 commit comments