From 8ec5ab92082a944efe1497a822c4671aad4c8e83 Mon Sep 17 00:00:00 2001 From: ghalestrilo Date: Fri, 28 Aug 2020 15:02:07 -0300 Subject: [PATCH] :ok_hand: fix 0px, anonymous function and /mobile endpoint --- client/components/mobile/ActionStrip.jsx | 2 +- client/components/mobile/Header.jsx | 2 +- client/modules/IDE/actions/project.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/components/mobile/ActionStrip.jsx b/client/components/mobile/ActionStrip.jsx index b8465477..4446d89f 100644 --- a/client/components/mobile/ActionStrip.jsx +++ b/client/components/mobile/ActionStrip.jsx @@ -32,7 +32,7 @@ const ActionStrip = ({ actions }) => ( icon={icon} aria-label={aria} key={`bottom-bar-${aria}`} - onClick={() => action()} + onClick={action} />))} ); diff --git a/client/components/mobile/Header.jsx b/client/components/mobile/Header.jsx index 993bf583..6492a44d 100644 --- a/client/components/mobile/Header.jsx +++ b/client/components/mobile/Header.jsx @@ -38,7 +38,7 @@ const HeaderDiv = styled.div` .editor__unsaved-changes svg { width: ${remSize(16)}; - padding: 0px; + padding: 0; vertical-align: top } `; diff --git a/client/modules/IDE/actions/project.js b/client/modules/IDE/actions/project.js index 9c15112a..05215579 100644 --- a/client/modules/IDE/actions/project.js +++ b/client/modules/IDE/actions/project.js @@ -188,7 +188,7 @@ export function saveProject(selectedFile = null, autosave = false, mobile = fals dispatch(setNewProject(synchedProject)); dispatch(setUnsavedChanges(false)); - browserHistory.push(`${mobile ? '/mobile' : ''}/${response.data.user.username}/sketches/${response.data.id}`); + browserHistory.push(`/${response.data.user.username}/sketches/${response.data.id}`); if (hasChanges) { dispatch(setUnsavedChanges(true));