-
Notifications
You must be signed in to change notification settings - Fork 75
feat: import FooterSlot
from component package instead of slot package
#765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: import FooterSlot
from component package instead of slot package
#765
Conversation
2ead8da
to
eecb924
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #765 +/- ##
=======================================
Coverage 93.15% 93.15%
=======================================
Files 161 161
Lines 3402 3402
Branches 919 923 +4
=======================================
Hits 3169 3169
Misses 215 215
Partials 18 18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Sandbox deployment successful 🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@@ -27,7 +27,7 @@ import { selectPostEditorVisible } from '../posts/data/selectors'; | |||
import { isCourseStatusValid } from '../utils'; | |||
import useFeedbackWrapper from './FeedbackWrapper'; | |||
|
|||
const FooterSlot = lazy(() => import('@openedx/frontend-slot-footer')); | |||
const FooterSlot = lazy(() => import('@edx/frontend-component-footer').then(module => ({ default: module.FooterSlot }))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checking: will this work for importing { FooterSlot }
as a named export? I assume this is what the promise handling is for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. The promise gets us the entire thing (module
), and then we can grab FooterSlot
from that
I followed the pattern from here https://stackoverflow.com/a/66289130
eecb924
to
9f878c6
Compare
https://app.pr-765-2977b1.sandboxes.opencraft.hosting/discussions/course-v1:demo+Course+1/posts