Skip to content

Commit 8d36f7e

Browse files
committed
editor navigation and hook
1 parent 67043d9 commit 8d36f7e

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

client/modules/IDE/components/Header/MobileNav.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useContext, useMemo, useState } from 'react';
1+
import React, { useContext, useEffect, useMemo, useState } from 'react';
22
import styled from 'styled-components';
33
import { useDispatch, useSelector } from 'react-redux';
44
import { useTranslation } from 'react-i18next';
@@ -261,7 +261,7 @@ const MobileNav = () => {
261261
</Link>
262262
</div>
263263
)}
264-
{title === project.name ? (
264+
{pageName === 'home' ? (
265265
<MoreMenu />
266266
) : (
267267
<div>

client/modules/IDE/pages/IDEView.jsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,6 @@ const IDEView = (props) => {
109109
}
110110
}, []);
111111

112-
// for setting previous location
113-
useEffect(() => {
114-
dispatch(setPreviousPath(locationRef.current.pathname));
115-
}, [location.pathname]);
116-
117112
// For autosave
118113
useEffect(() => {
119114
const handleAutosave = () => {

0 commit comments

Comments
 (0)