fix: exporting logo and better proptypes

This commit is contained in:
David Joy
2019-07-03 15:42:48 -04:00
parent 9df6e12174
commit 9667a5cee4
3 changed files with 5 additions and 5 deletions

View File

@@ -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"
},

View File

@@ -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;

View File

@@ -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: [],