diff --git a/package.json b/package.json index 8762fac1..2101b229 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "name": "@edx/frontend-component-footer", "version": "1.0.0-semantically-released", "description": "Site footer component for use when building edX frontend applications", - "main": "dist/main.js", - "module": "dist/main.js", + "main": "dist/index.js", + "module": "dist/index.js", "publishConfig": { "access": "public" }, diff --git a/src/index.js b/src/index.js index c71cce18..5db3673b 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,5 @@ import SiteFooter from './lib'; +export { default as FooterLogo } from './config/edx-footer.png'; export { default as config } from './config'; export default SiteFooter; diff --git a/src/lib/SiteFooter.jsx b/src/lib/SiteFooter.jsx index 627920fc..29303990 100644 --- a/src/lib/SiteFooter.jsx +++ b/src/lib/SiteFooter.jsx @@ -197,7 +197,7 @@ SiteFooter.propTypes = { src: PropTypes.node, altText: PropTypes.string, ariaLabel: PropTypes.string, - }), + }).isRequired, marketingSiteBaseUrl: PropTypes.string, linkSectionOne: linkSectionShape, linkSectionTwo: linkSectionShape, @@ -245,13 +245,12 @@ const linkSectionDefault = { }; SiteFooter.defaultProps = { - siteLogo: null, marketingSiteBaseUrl: null, linkSectionOne: linkSectionDefault, linkSectionTwo: linkSectionDefault, linkSectionThree: linkSectionDefault, socialLinks: [], - showMobileLinks: true, + showMobileLinks: false, appleAppStore: null, googlePlay: null, supportedLanguages: [],