🚧 update mobile links not to include /mobile
This commit is contained in:
parent
21fce873df
commit
904e87333c
2 changed files with 8 additions and 8 deletions
|
@ -66,14 +66,14 @@ const NavItem = styled.li`
|
|||
const getNavOptions = (username = undefined) =>
|
||||
(username
|
||||
? [
|
||||
{ icon: PreferencesIcon, title: 'Preferences', href: '/mobile/preferences', },
|
||||
{ icon: PreferencesIcon, title: 'My Stuff', href: `/mobile/${username}/sketches` },
|
||||
{ icon: PreferencesIcon, title: 'Examples', href: '/mobile/p5/sketches' },
|
||||
{ icon: PreferencesIcon, title: 'Preferences', href: '/preferences', },
|
||||
{ icon: PreferencesIcon, title: 'My Stuff', href: `/${username}/sketches` },
|
||||
{ icon: PreferencesIcon, title: 'Examples', href: '/p5/sketches' },
|
||||
{ icon: PreferencesIcon, title: 'Original Editor', href: '/', },
|
||||
]
|
||||
: [
|
||||
{ icon: PreferencesIcon, title: 'Preferences', href: '/mobile/preferences', },
|
||||
{ icon: PreferencesIcon, title: 'Examples', href: '/mobile/p5/sketches' },
|
||||
{ icon: PreferencesIcon, title: 'Preferences', href: '/preferences', },
|
||||
{ icon: PreferencesIcon, title: 'Examples', href: '/p5/sketches' },
|
||||
{ icon: PreferencesIcon, title: 'Original Editor', href: '/', },
|
||||
]
|
||||
);
|
||||
|
@ -137,7 +137,7 @@ const MobileIDEView = (props) => {
|
|||
<NavDropDown />
|
||||
</NavItem>
|
||||
<li>
|
||||
<IconButton to="/mobile/preview" onClick={() => { startSketch(); }} icon={PlayIcon} aria-label="Run sketch" />
|
||||
<IconButton to="/preview" onClick={() => { startSketch(); }} icon={PlayIcon} aria-label="Run sketch" />
|
||||
</li>
|
||||
</Header>
|
||||
|
||||
|
|
|
@ -138,8 +138,8 @@ const Panels = {
|
|||
|
||||
|
||||
const navOptions = username => [
|
||||
{ title: 'Create Sketch', href: '/mobile' },
|
||||
{ title: 'Create Collection', href: `/mobile/${username}/collections/create` }
|
||||
{ title: 'Create Sketch', href: '/' },
|
||||
{ title: 'Create Collection', href: `/${username}/collections/create` }
|
||||
];
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue