Skip to content

Commit 643b213

Browse files
committed
update routes and imports
1 parent e382e1c commit 643b213

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

client/modules/IDE/components/IDEOverlays.jsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
closeShareModal,
1010
hideErrorModal
1111
} from '../actions/ide';
12-
import About from './About';
1312
import AddToCollectionList from './AddToCollectionList';
1413
import ErrorModal from './ErrorModal';
1514
import Feedback from './Feedback';
@@ -49,15 +48,6 @@ export default function IDEOverlays() {
4948
<Preferences />
5049
</Overlay>
5150
)}
52-
{location.pathname === '/about' && (
53-
<Overlay
54-
title={t('About.Title')}
55-
previousPath={previousPath}
56-
ariaLabel={t('About.Title')}
57-
>
58-
<About />
59-
</Overlay>
60-
)}
6151
{location.pathname === '/feedback' && (
6252
<Overlay
6353
title={t('IDEView.SubmitFeedback')}

client/modules/IDE/pages/IDEView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function isAuth(pathname) {
3838
}
3939

4040
function isOverlay(pathname) {
41-
return pathname === '/about' || pathname === '/feedback';
41+
return pathname === '/feedback';
4242
}
4343

4444
function WarnIfUnsavedChanges() {

client/routes.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Route as RouterRoute, Switch } from 'react-router-dom';
66
import App from './modules/App/App';
77
import IDEView from './modules/IDE/pages/IDEView';
88
import FullView from './modules/IDE/pages/FullView';
9+
import About from './modules/IDE/pages/About';
910
import CodeOfConduct from './modules/Legal/pages/CodeOfConduct';
1011
import PrivacyPolicy from './modules/Legal/pages/PrivacyPolicy';
1112
import TermsOfUse from './modules/Legal/pages/TermsOfUse';
@@ -72,7 +73,7 @@ const routes = (
7273
<Route path="/sketches" component={DashboardView} />
7374
<Route path="/assets" component={DashboardView} />
7475
<Route path="/account" component={AccountView} />
75-
<Route path="/about" component={IDEView} />
76+
<Route path="/about" component={About} />
7677
<Route path="/privacy-policy" component={PrivacyPolicy} />
7778
<Route path="/terms-of-use" component={TermsOfUse} />
7879
<Route path="/code-of-conduct" component={CodeOfConduct} />

0 commit comments

Comments
 (0)