Skip to content

Commit 5da8b24

Browse files
committed
💄 start with terinal collapsed
1 parent dabd5e0 commit 5da8b24

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

client/modules/App/App.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ class App extends React.Component {
3434
render() {
3535
return (
3636
<div className="app">
37-
{this.state.isMounted && !window.devToolsExtension && getConfig('NODE_ENV') === 'development' && <DevTools />}
37+
{false &&
38+
this.state.isMounted && !window.devToolsExtension && getConfig('NODE_ENV') === 'development' && <DevTools />}
3839
{this.props.children}
3940
</div>
4041
);

client/modules/IDE/pages/MobileIDEView.jsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { bindActionCreators } from 'redux';
1010

1111
import * as IDEActions from '../actions/ide';
1212
import * as ProjectActions from '../actions/project';
13+
import * as ConsoleActions from '../actions/console';
1314

1415
// Local Imports
1516
import Editor from '../components/Editor';
@@ -67,8 +68,8 @@ const getNatOptions = (username = undefined) =>
6768

6869
const MobileIDEView = (props) => {
6970
const {
70-
ide, project, selectedFile, user, params, unsavedChanges,
71-
stopSketch, startSketch, getProject, clearPersistedState
71+
ide, project, selectedFile, user, params, unsavedChanges, collapseConsole,
72+
stopSketch, startSketch, getProject, clearPersistedState,
7273
} = props;
7374

7475
const [tmController, setTmController] = useState(null); // eslint-disable-line
@@ -84,7 +85,10 @@ const MobileIDEView = (props) => {
8485

8586
// Force state reset
8687
useEffect(clearPersistedState, []);
87-
useEffect(stopSketch, []);
88+
useEffect(() => {
89+
stopSketch();
90+
collapseConsole();
91+
}, []);
8892

8993
// Load Project
9094
const [currentProjectID, setCurrentProjectID] = useState(null);
@@ -172,6 +176,7 @@ MobileIDEView.propTypes = {
172176
stopSketch: PropTypes.func.isRequired,
173177
getProject: PropTypes.func.isRequired,
174178
clearPersistedState: PropTypes.func.isRequired,
179+
collapseConsole: PropTypes.func.isRequired,
175180
};
176181

177182
function mapStateToProps(state) {
@@ -192,7 +197,8 @@ function mapStateToProps(state) {
192197

193198
const mapDispatchToProps = dispatch => bindActionCreators({
194199
...ProjectActions,
195-
...IDEActions
200+
...IDEActions,
201+
...ConsoleActions
196202
}, dispatch);
197203

198204
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(MobileIDEView));

0 commit comments

Comments
 (0)