-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(linkprops): update link props #37
fix(linkprops): update link props #37
Conversation
@@ -40,6 +40,7 @@ | |||
"@commitlint/config-angular": "^6.0.2", | |||
"@commitlint/prompt": "^6.0.2", | |||
"@commitlint/prompt-cli": "^6.0.2", | |||
"@edx/edx-bootstrap": "^2.2.1", |
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.
NB: this is necessary to run the footer dev server.
So I'm assuming it didn't "just work" with the |
Sorry @douglashall I didn't get around to checking that. In prospectus we need to be able to update the link urls to point to Spanish versions of the pages so we would need this update for that anyway. I also think it makes sense to move all strings to passed in props, as opposed to some passed in and some hard-coded. |
29b14a8
to
3f0e082
Compare
BREAKING CHANGE move to link arrays and remove strings from component (and thus the need for i18n)
4ffff24
to
3ab4adf
Compare
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! Much cleaner props implementation 👍
}} | ||
copyright="© 2012–2019 edX Inc." | ||
trademark={( | ||
<React.Fragment>EdX, Open edX, and MicroMasters are registered trademarks of edX Inc. | 深圳市恒宇博科技有限公司 <a href="http://www.beian.miit.gov.cn">粤ICP备17044299号-2</a></React.Fragment> |
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.
Personal preference but the shorthand for fragments is great if you have seen it before:
<>
<div />
<div />
</>
BREAKING CHANGE move to link arrays and remove strings from component (and thus the need for i18n).