🚧 improve header navigation
This commit is contained in:
parent
6e668cda68
commit
bf67451474
1 changed files with 2 additions and 15 deletions
|
@ -20,7 +20,7 @@ import { getHTMLFile } from '../reducers/files';
|
||||||
|
|
||||||
// Local Imports
|
// Local Imports
|
||||||
import Editor from '../components/Editor';
|
import Editor from '../components/Editor';
|
||||||
import { PlayIcon, ExitIcon, MoreIcon } from '../../../common/icons';
|
import { PlayIcon, MoreIcon } from '../../../common/icons';
|
||||||
|
|
||||||
import IconButton from '../../../components/mobile/IconButton';
|
import IconButton from '../../../components/mobile/IconButton';
|
||||||
import Header from '../../../components/mobile/Header';
|
import Header from '../../../components/mobile/Header';
|
||||||
|
@ -48,7 +48,7 @@ const NavItem = styled.li`
|
||||||
|
|
||||||
const headerNavOptions = [
|
const headerNavOptions = [
|
||||||
{ icon: PreferencesIcon, title: 'Preferences', href: '/mobile/preferences', },
|
{ icon: PreferencesIcon, title: 'Preferences', href: '/mobile/preferences', },
|
||||||
{ icon: PreferencesIcon, title: 'Examples', href: '/p5/sketches' },
|
{ icon: PreferencesIcon, title: 'Examples', href: '/mobile/p5/sketches' },
|
||||||
{ icon: PreferencesIcon, title: 'Original Editor', href: '/', },
|
{ icon: PreferencesIcon, title: 'Original Editor', href: '/', },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -66,8 +66,6 @@ const MobileIDEView = (props) => {
|
||||||
files,
|
files,
|
||||||
closeEditorOptions,
|
closeEditorOptions,
|
||||||
showEditorOptions,
|
showEditorOptions,
|
||||||
showKeyboardShortcutModal,
|
|
||||||
setUnsavedChanges,
|
|
||||||
startRefreshSketch,
|
startRefreshSketch,
|
||||||
stopSketch,
|
stopSketch,
|
||||||
expandSidebar,
|
expandSidebar,
|
||||||
|
@ -89,13 +87,6 @@ const MobileIDEView = (props) => {
|
||||||
<Header
|
<Header
|
||||||
title={project.name}
|
title={project.name}
|
||||||
subtitle={selectedFile.name}
|
subtitle={selectedFile.name}
|
||||||
leftButton={
|
|
||||||
<IconButton
|
|
||||||
to="/mobile"
|
|
||||||
icon={ExitIcon}
|
|
||||||
aria-label="Return to original editor"
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
<NavItem>
|
<NavItem>
|
||||||
<IconButton
|
<IconButton
|
||||||
|
@ -237,10 +228,6 @@ MobileIDEView.propTypes = {
|
||||||
|
|
||||||
showEditorOptions: PropTypes.func.isRequired,
|
showEditorOptions: PropTypes.func.isRequired,
|
||||||
|
|
||||||
showKeyboardShortcutModal: PropTypes.func.isRequired,
|
|
||||||
|
|
||||||
setUnsavedChanges: PropTypes.func.isRequired,
|
|
||||||
|
|
||||||
startRefreshSketch: PropTypes.func.isRequired,
|
startRefreshSketch: PropTypes.func.isRequired,
|
||||||
|
|
||||||
stopSketch: PropTypes.func.isRequired,
|
stopSketch: PropTypes.func.isRequired,
|
||||||
|
|
Loading…
Reference in a new issue