Skip to content

Commit

Permalink
fix: pass extra prop to plugin slot (#1494)
Browse files Browse the repository at this point in the history
passing model as a prop to plugin slot for dynamic model selection
SONIC-717
  • Loading branch information
mubbsharanwar authored Oct 11, 2024
1 parent 9a83d67 commit 798c51b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/course-home/outline-tab/OutlineTab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ const OutlineTab = ({ intl }) => {
<CourseTools />
<PluginSlot
id="outline_tab_notifications_slot"
pluginProps={{ courseId }}
pluginProps={{
courseId,
model: 'outline',
}}
>
<UpgradeNotification
offer={offer}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const NotificationsWidget = () => {
id="notification_widget_slot"
pluginProps={{
courseId,
model: 'coursewareMeta',
notificationCurrentState: upgradeNotificationCurrentState,
setNotificationCurrentState: setUpgradeNotificationCurrentState,
toggleSidebar: onToggleSidebar,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const NotificationTray = ({ intl }) => {
id="notification_tray_slot"
pluginProps={{
courseId,
model: 'coursewareMeta',
notificationCurrentState: upgradeNotificationCurrentState,
setNotificationCurrentState: setUpgradeNotificationCurrentState,
}}
Expand Down

0 comments on commit 798c51b

Please sign in to comment.