💄 start with terinal collapsed
This commit is contained in:
parent
dabd5e0678
commit
5da8b24da8
2 changed files with 12 additions and 5 deletions
|
@ -34,7 +34,8 @@ class App extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="app">
|
<div className="app">
|
||||||
{this.state.isMounted && !window.devToolsExtension && getConfig('NODE_ENV') === 'development' && <DevTools />}
|
{false &&
|
||||||
|
this.state.isMounted && !window.devToolsExtension && getConfig('NODE_ENV') === 'development' && <DevTools />}
|
||||||
{this.props.children}
|
{this.props.children}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -10,6 +10,7 @@ import { bindActionCreators } from 'redux';
|
||||||
|
|
||||||
import * as IDEActions from '../actions/ide';
|
import * as IDEActions from '../actions/ide';
|
||||||
import * as ProjectActions from '../actions/project';
|
import * as ProjectActions from '../actions/project';
|
||||||
|
import * as ConsoleActions from '../actions/console';
|
||||||
|
|
||||||
// Local Imports
|
// Local Imports
|
||||||
import Editor from '../components/Editor';
|
import Editor from '../components/Editor';
|
||||||
|
@ -67,8 +68,8 @@ const getNatOptions = (username = undefined) =>
|
||||||
|
|
||||||
const MobileIDEView = (props) => {
|
const MobileIDEView = (props) => {
|
||||||
const {
|
const {
|
||||||
ide, project, selectedFile, user, params, unsavedChanges,
|
ide, project, selectedFile, user, params, unsavedChanges, collapseConsole,
|
||||||
stopSketch, startSketch, getProject, clearPersistedState
|
stopSketch, startSketch, getProject, clearPersistedState,
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const [tmController, setTmController] = useState(null); // eslint-disable-line
|
const [tmController, setTmController] = useState(null); // eslint-disable-line
|
||||||
|
@ -84,7 +85,10 @@ const MobileIDEView = (props) => {
|
||||||
|
|
||||||
// Force state reset
|
// Force state reset
|
||||||
useEffect(clearPersistedState, []);
|
useEffect(clearPersistedState, []);
|
||||||
useEffect(stopSketch, []);
|
useEffect(() => {
|
||||||
|
stopSketch();
|
||||||
|
collapseConsole();
|
||||||
|
}, []);
|
||||||
|
|
||||||
// Load Project
|
// Load Project
|
||||||
const [currentProjectID, setCurrentProjectID] = useState(null);
|
const [currentProjectID, setCurrentProjectID] = useState(null);
|
||||||
|
@ -172,6 +176,7 @@ MobileIDEView.propTypes = {
|
||||||
stopSketch: PropTypes.func.isRequired,
|
stopSketch: PropTypes.func.isRequired,
|
||||||
getProject: PropTypes.func.isRequired,
|
getProject: PropTypes.func.isRequired,
|
||||||
clearPersistedState: PropTypes.func.isRequired,
|
clearPersistedState: PropTypes.func.isRequired,
|
||||||
|
collapseConsole: PropTypes.func.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
function mapStateToProps(state) {
|
function mapStateToProps(state) {
|
||||||
|
@ -192,7 +197,8 @@ function mapStateToProps(state) {
|
||||||
|
|
||||||
const mapDispatchToProps = dispatch => bindActionCreators({
|
const mapDispatchToProps = dispatch => bindActionCreators({
|
||||||
...ProjectActions,
|
...ProjectActions,
|
||||||
...IDEActions
|
...IDEActions,
|
||||||
|
...ConsoleActions
|
||||||
}, dispatch);
|
}, dispatch);
|
||||||
|
|
||||||
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(MobileIDEView));
|
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(MobileIDEView));
|
||||||
|
|
Loading…
Reference in a new issue