Skip to content
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

Merged

Conversation

AlasdairSwan
Copy link
Contributor

@AlasdairSwan AlasdairSwan commented May 31, 2019

BREAKING CHANGE move to link arrays and remove strings from component (and thus the need for i18n).

@@ -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",
Copy link
Contributor Author

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.

@douglashall
Copy link
Contributor

So I'm assuming it didn't "just work" with the @edx/frontend-i18n requirement here?

@AlasdairSwan
Copy link
Contributor Author

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.

@AlasdairSwan AlasdairSwan force-pushed the alasdair/update-link-sections-to-accept-arrays branch 3 times, most recently from 29b14a8 to 3f0e082 Compare June 3, 2019 15:48
@davidjoy davidjoy requested a review from albemarle June 3, 2019 19:53
BREAKING CHANGE move to link arrays and remove strings from component (and thus the need for i18n)
@AlasdairSwan AlasdairSwan force-pushed the alasdair/update-link-sections-to-accept-arrays branch from 4ffff24 to 3ab4adf Compare June 3, 2019 19:57
Copy link
Member

@adamstankiewicz adamstankiewicz left a 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>
Copy link
Member

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 />
</>

@AlasdairSwan AlasdairSwan merged commit 6db2d70 into master Jun 4, 2019
@AlasdairSwan AlasdairSwan deleted the alasdair/update-link-sections-to-accept-arrays branch June 4, 2019 13:03
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants