Skip to content

Commit

Permalink
Merge pull request #242 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 b0ee643 + 95f01ad commit 7acfc27
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 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';


//
Expand Down Expand Up @@ -66,12 +66,15 @@ const Menuitems = [
icon: coursePannerIcon,
href: "/course-planner",
},
{
title: "SIDEBAR.WORKSPACE",
icon: dashboardIcon,
href: "/workspace/content/create",

},
...(isEditorUrlDefined
? [
{
title: "SIDEBAR.WORKSPACE",
icon: dashboardIcon,
href: "/workspace/content/create",
},
]
: []),
];

export default Menuitems;

0 comments on commit 7acfc27

Please sign in to comment.