Skip to content

Commit

Permalink
fix: pass extra prop to plugin slot
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 committed Oct 3, 2024
1 parent 860b3f9 commit abbdf59
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 @@ -77,6 +77,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 @@ -85,6 +85,7 @@ const NotificationTray = ({ intl }) => {
id="notification_tray_slot"
pluginProps={{
courseId,
model: 'coursewareMeta',
notificationCurrentState: upgradeNotificationCurrentState,
setNotificationCurrentState: setUpgradeNotificationCurrentState,
}}
Expand Down

0 comments on commit abbdf59

Please sign in to comment.