Skip to content

Commit

Permalink
Merge pull request #243 from Aar-if/main
Browse files Browse the repository at this point in the history
Issue #PS-2103: Add Workspace UI implementation in admin portal
  • Loading branch information
itsvick authored Oct 9, 2024
2 parents 7acfc27 + 8eb9247 commit e65f1d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/layouts/sidebar/MenuItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import centerIcon from '../../../../public/images/centers.svg';
import dashboardIcon from '../../../../public/images/dashboard.svg';
import userIcon from '../../../../public/images/group.svg';
import coursePannerIcon from '../../../../public/images/event_available.svg';
const isEditorUrlDefined = typeof process.env.REMOTE_EDITOR_URL !== 'undefined';
const isBaseUrlDefined = !!process.env.REMOTE_EDITOR_URL;


//
Expand Down Expand Up @@ -66,7 +66,7 @@ const Menuitems = [
icon: coursePannerIcon,
href: "/course-planner",
},
...(isEditorUrlDefined
...(isBaseUrlDefined
? [
{
title: "SIDEBAR.WORKSPACE",
Expand All @@ -78,3 +78,5 @@ const Menuitems = [
];

export default Menuitems;


0 comments on commit e65f1d3

Please sign in to comment.