API Data in Paragon Component Example #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR combines the work done in #4 and #5 to display course information from the API in a Paragon Carousel component.
The most notable change on the API side is the addition of
transformResponse
to the queryfrontend-app-workshop-example/src/example/data/coursesApiService.js
Lines 15 to 20 in 72dc367
The most notable change on the Paragon Component side is passing
carouselData
in as a prop onExampleCarousel
.Testing
To play around with this functionality, you can make courses in Studio (http://localhost:18010/, default username
edx@example.com
, default passwordedx
)In the "Schedule & Details" section
You can update the "Course Short Description"
as well as the "Course Card Image"
Then when you run the MFE locally, you should see your course in the Carousel!