fix: pass extra prop to plugin slot (#1494)

passing model as a prop to plugin slot for dynamic model selection
SONIC-717
This commit is contained in:
Mubbshar Anwar
2024-10-11 14:40:10 +05:00
committed by GitHub
parent 9a83d67d78
commit 798c51b4e7
3 changed files with 6 additions and 1 deletions

View File

@@ -197,7 +197,10 @@ const OutlineTab = ({ intl }) => {
<CourseTools />
<PluginSlot
id="outline_tab_notifications_slot"
pluginProps={{ courseId }}
pluginProps={{
courseId,
model: 'outline',
}}
>
<UpgradeNotification
offer={offer}

View File

@@ -78,6 +78,7 @@ const NotificationsWidget = () => {
id="notification_widget_slot"
pluginProps={{
courseId,
model: 'coursewareMeta',
notificationCurrentState: upgradeNotificationCurrentState,
setNotificationCurrentState: setUpgradeNotificationCurrentState,
toggleSidebar: onToggleSidebar,

View File

@@ -86,6 +86,7 @@ const NotificationTray = ({ intl }) => {
id="notification_tray_slot"
pluginProps={{
courseId,
model: 'coursewareMeta',
notificationCurrentState: upgradeNotificationCurrentState,
setNotificationCurrentState: setUpgradeNotificationCurrentState,
}}