-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Header donation #91
Header donation #91
Conversation
on mobile we will render the donate slot within the menu whereas desktop will live within the header, besides, desktop on logged user will still have a donate button
also this commit will format collapser file
ideally we should be able to use a slot with the same name that take place twice on the structure
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.
I left a comment related to the workaround we are doing
<dc-user-items user={this.user} community={this.community} /> | ||
<div class="with-user"> | ||
<slot name="donate"> | ||
{this.donateurl && ( |
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.
Can we remove this now the fix has landed on Stencil?
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.
It has been merge to master on the stenciljs project but it hasn't get released yet @orlando
https://github.com/ionic-team/stencil/commits/master currently the latest version is 2.3.0 and it doesn't have the fix yet.
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.
I have created a technical debt for this one so we can move forward now
What:
Add support to inject custom donation component
Why:
relates to the effort of
Gatsby link for Donate button
How:
Use the
slot
API from stencil to allow render a custom component whenever thedonateurl
is set to falsy valueThe need of use a donateurl to false comes from the bug that has been addressed with ionic-team/stencil#2650
Extras:
This code will add donate button on mobile and desktop for users and guests, besides some other aesthetics details.
Media: