File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717### Modify Secondary Menu Items
1818
1919The following ` env.config.jsx ` replaces the secondary menu links with custom ones.
20- ![ Screenshot of modified Notifications Tray and Menu Items] ( ../images/modify_notifications_tray_and_menu_items .png )
20+ ![ Screenshot of modified Secondary Menu Items] ( ../images/modify_secondary_menu .png )
2121
2222``` jsx
2323import React from ' react' ;
24- import { DIRECT_PLUGIN , PLUGIN_OPERATIONS } from ' @openedx/frontend-plugin-framework' ;
24+ import { PLUGIN_OPERATIONS } from ' @openedx/frontend-plugin-framework' ;
2525
2626const modifySecondaryMenu = (widget ) => {
2727 widget .content .menu = [
@@ -51,22 +51,6 @@ const config = {
5151 },
5252 ],
5353 },
54- ' org.openedx.frontend.layout.header_notifications_tray.v1' : {
55- keepDefault: false ,
56- plugins: [
57- {
58- op: PLUGIN_OPERATIONS .Insert ,
59- widget: {
60- id: ' custom_notifications_component' ,
61- type: DIRECT_PLUGIN ,
62- priority: 50 ,
63- RenderWidget : () => (
64- < span> 🔔 My Custom Notifications< / span>
65- ),
66- },
67- },
68- ],
69- },
7054 },
7155};
7256
You can’t perform that action at this time.
0 commit comments