Skip to content

Commit 904e873

Browse files
committed
🚧 update mobile links not to include /mobile
1 parent 21fce87 commit 904e873

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

client/modules/IDE/pages/MobileIDEView.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ const NavItem = styled.li`
6666
const getNavOptions = (username = undefined) =>
6767
(username
6868
? [
69-
{ icon: PreferencesIcon, title: 'Preferences', href: '/mobile/preferences', },
70-
{ icon: PreferencesIcon, title: 'My Stuff', href: `/mobile/${username}/sketches` },
71-
{ icon: PreferencesIcon, title: 'Examples', href: '/mobile/p5/sketches' },
69+
{ icon: PreferencesIcon, title: 'Preferences', href: '/preferences', },
70+
{ icon: PreferencesIcon, title: 'My Stuff', href: `/${username}/sketches` },
71+
{ icon: PreferencesIcon, title: 'Examples', href: '/p5/sketches' },
7272
{ icon: PreferencesIcon, title: 'Original Editor', href: '/', },
7373
]
7474
: [
75-
{ icon: PreferencesIcon, title: 'Preferences', href: '/mobile/preferences', },
76-
{ icon: PreferencesIcon, title: 'Examples', href: '/mobile/p5/sketches' },
75+
{ icon: PreferencesIcon, title: 'Preferences', href: '/preferences', },
76+
{ icon: PreferencesIcon, title: 'Examples', href: '/p5/sketches' },
7777
{ icon: PreferencesIcon, title: 'Original Editor', href: '/', },
7878
]
7979
);
@@ -137,7 +137,7 @@ const MobileIDEView = (props) => {
137137
<NavDropDown />
138138
</NavItem>
139139
<li>
140-
<IconButton to="/mobile/preview" onClick={() => { startSketch(); }} icon={PlayIcon} aria-label="Run sketch" />
140+
<IconButton to="/preview" onClick={() => { startSketch(); }} icon={PlayIcon} aria-label="Run sketch" />
141141
</li>
142142
</Header>
143143

client/modules/Mobile/MobileDashboardView.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ const Panels = {
138138

139139

140140
const navOptions = username => [
141-
{ title: 'Create Sketch', href: '/mobile' },
142-
{ title: 'Create Collection', href: `/mobile/${username}/collections/create` }
141+
{ title: 'Create Sketch', href: '/' },
142+
{ title: 'Create Collection', href: `/${username}/collections/create` }
143143
];
144144

145145

0 commit comments

Comments
 (0)