diff --git a/client/components/mobile/ActionStrip.jsx b/client/components/mobile/ActionStrip.jsx index 7486d1e5..b8465477 100644 --- a/client/components/mobile/ActionStrip.jsx +++ b/client/components/mobile/ActionStrip.jsx @@ -38,7 +38,7 @@ const ActionStrip = ({ actions }) => ( ActionStrip.propTypes = { actions: PropTypes.arrayOf(PropTypes.shape({ - icon: PropTypes.element.isRequired, + icon: PropTypes.any, aria: PropTypes.string.isRequired, action: PropTypes.func.isRequired, inverted: PropTypes.bool diff --git a/client/modules/IDE/pages/MobileIDEView.jsx b/client/modules/IDE/pages/MobileIDEView.jsx index 0841da80..6067807c 100644 --- a/client/modules/IDE/pages/MobileIDEView.jsx +++ b/client/modules/IDE/pages/MobileIDEView.jsx @@ -183,7 +183,6 @@ const MobileIDEView = (props) => { const { consoleIsExpanded } = ide; const { name: filename } = selectedFile; - // Force state reset useEffect(clearPersistedState, []); useEffect(() => { @@ -338,6 +337,7 @@ function mapStateToProps(state) { state.files.find(file => file.name === 'sketch.js') || state.files.find(file => file.name !== 'root'), ide: state.ide, + files: state.files, unsavedChanges: state.ide.unsavedChanges, preferences: state.preferences, user: state.user,