Skip to content

Commit 3c5eb2e

Browse files
committed
feat: Props passed down to plugins.
1 parent 3be690b commit 3c5eb2e

File tree

13 files changed

+15
-0
lines changed

13 files changed

+15
-0
lines changed

src/plugin-slots/CourseInfoSlot/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const CourseInfoSlot = ({
1818
courseOrg,
1919
courseNumber,
2020
courseTitle,
21+
attributes,
2122
}}
2223
>
2324
<LearningHeaderCourseInfo

src/plugin-slots/DesktopHeaderSlot/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const DesktopHeaderSlot = ({
1111
slotOptions={{
1212
mergeProps: true,
1313
}}
14+
pluginProps={props}
1415
>
1516
<DesktopHeader {...props} />
1617
</PluginSlot>

src/plugin-slots/DesktopLoggedOutItemsSlot/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const DesktopLoggedOutItemsSlot = ({
1111
slotOptions={{
1212
mergeProps: true,
1313
}}
14+
pluginPrope={{ items }}
1415
>
1516
<DesktopLoggedOutItems items={items} />
1617
</PluginSlot>

src/plugin-slots/DesktopMainMenuSlot/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const DesktopMainMenuSlot = ({
1111
slotOptions={{
1212
mergeProps: true,
1313
}}
14+
pluginProps={{ menu }}
1415
>
1516
<DesktopHeaderMainOrSecondaryMenu menu={menu} />
1617
</PluginSlot>

src/plugin-slots/DesktopSecondaryMenuSlot/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const DesktopSecondaryMenuSlot = ({
1111
slotOptions={{
1212
mergeProps: true,
1313
}}
14+
pluginProps={{ menu }}
1415
>
1516
<DesktopHeaderMainOrSecondaryMenu menu={menu} />
1617
</PluginSlot>

src/plugin-slots/DesktopUserMenuSlot/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const DesktopUserMenuSlot = ({
1111
slotOptions={{
1212
mergeProps: true,
1313
}}
14+
pluginProps={{ menu }}
1415
>
1516
<DesktopHeaderUserMenu menu={menu} />
1617
</PluginSlot>

src/plugin-slots/LearningLoggedOutItemsSlot/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const LearningLoggedOutItemsSlot = ({
1111
slotOptions={{
1212
mergeProps: true,
1313
}}
14+
pluginProps={{ buttonsInfo }}
1415
>
1516
<LearningLoggedOutButtons buttonsInfo={buttonsInfo} />
1617
</PluginSlot>

src/plugin-slots/LearningUserMenuSlot/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const LearningUserMenuSlot = ({
1111
slotOptions={{
1212
mergeProps: true,
1313
}}
14+
pluginProps={{ items }}
1415
>
1516
<LearningHeaderUserMenuItems items={items} />
1617
</PluginSlot>

src/plugin-slots/LogoSlot/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ const LogoSlot = ({
1111
slotOptions={{
1212
mergeProps: true,
1313
}}
14+
props={{
15+
href, src, alt, attributes,
16+
}}
1417
>
1518
<Logo href={href} src={src} alt={alt} {...attributes} />
1619
</PluginSlot>

src/plugin-slots/MobileHeaderSlot/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const MobileHeaderSlot = ({
1111
slotOptions={{
1212
mergeProps: true,
1313
}}
14+
pluginProps={props}
1415
>
1516
<MobileHeader {...props} />
1617
</PluginSlot>

0 commit comments

Comments
 (0)