🚧 update mobile links not to include /mobile

This commit is contained in:
ghalestrilo 2020-08-19 18:30:11 -03:00
parent 904e87333c
commit fc48a5a86c
4 changed files with 3 additions and 5 deletions

View File

@ -262,8 +262,6 @@ class SketchListRowBase extends React.Component {
url = `/${username}/sketches/${slugify(sketch.name, '_')}`;
}
if (this.props.mobile) url = `/mobile${url}`;
const name = (
<React.Fragment>
<Link to={url}>

View File

@ -185,7 +185,7 @@ const MobileDashboard = ({ params, location }) => {
<NavDropdown />
</NavItem>
<IconButton to="/mobile" icon={ExitIcon} aria-label="Return to ide view" />
<IconButton to="/" icon={ExitIcon} aria-label="Return to ide view" />
</Header>

View File

@ -69,7 +69,7 @@ const MobilePreferences = () => {
<Screen fullscreen>
<section>
<Header transparent title="Preferences">
<IconButton to="/mobile" icon={ExitIcon} aria-label="Return to ide view" />
<IconButton to="/" icon={ExitIcon} aria-label="Return to ide view" />
</Header>
<section className="preferences">
<Content>

View File

@ -39,7 +39,7 @@ const MobileSketchView = () => {
return (
<Screen fullscreen>
<Header
leftButton={<IconButton to="/mobile" icon={ExitIcon} aria-label="Return to original editor" />}
leftButton={<IconButton to="/" icon={ExitIcon} aria-label="Return to original editor" />}
title={projectName}
/>
<Content>