Skip to content

Commit c58ccd6

Browse files
committed
docs: update DesktopSecondaryMenuSlot readme
1 parent a827f08 commit c58ccd6

3 files changed

Lines changed: 2 additions & 18 deletions

File tree

Binary file not shown.
37.6 KB
Loading

src/plugin-slots/DesktopSecondaryMenuSlot/v1/README.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
### Modify Secondary Menu Items
1818

1919
The 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
2323
import React from 'react';
24-
import { DIRECT_PLUGIN, PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-framework';
24+
import { PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-framework';
2525

2626
const 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

0 commit comments

Comments
 (0)