chore: component re-organization for work sharing
This commit is contained in:
3
src/containers/CourseCard/components/Banners/index.jsx
Normal file
3
src/containers/CourseCard/components/Banners/index.jsx
Normal file
@@ -0,0 +1,3 @@
|
||||
export { default as CourseBanner } from './CourseBanner';
|
||||
export { default as CertificateBanner } from './CertificateBanner';
|
||||
export { default as EntitlementBanner } from './EntitlementBanner';
|
||||
@@ -1,20 +0,0 @@
|
||||
import React from 'react';
|
||||
|
||||
import shapes from 'data/services/lms/shapes';
|
||||
|
||||
import CourseBanner from './components/CourseBanner';
|
||||
import CertificateBanner from './components/CertificateBanner';
|
||||
import EntitlementBanner from './components/EntitlementBanner';
|
||||
|
||||
export const CourseCardBanners = ({ cardData }) => (
|
||||
<>
|
||||
<CourseBanner cardData={cardData} />
|
||||
<CertificateBanner cardData={cardData} />
|
||||
<EntitlementBanner cardData={cardData} />
|
||||
</>
|
||||
);
|
||||
CourseCardBanners.propTypes = {
|
||||
cardData: shapes.courseRunCardData.isRequired,
|
||||
};
|
||||
|
||||
export default CourseCardBanners;
|
||||
Reference in New Issue
Block a user