-
Notifications
You must be signed in to change notification settings - Fork 496
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
feat: Create sharing menu #300
feat: Create sharing menu #300
Conversation
…' into create-sharing-menu
I couldn't figure out the part where you mentioned creating a global object for the sharing URL I did it inside the function as I didn't know if there was a file to create the global variables in or if should I just have included them after the imports in the same file. As for the part where you recommend using the ternary operator I think it will get more complicated as we add more social media platforms so, I wouldn't recommend it although it's a beautiful idea if we only had two platforms. Thanks again for the amazing feedback. |
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.
Just added a small suggestion, as Twitter has been renamed to X we might as well do so here 😉
Co-authored-by: Yohan Lasorsa <noda@free.fr>
@sinedied I approved your changes. |
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.
Thanks for your contribution!
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.
Thanks for your contribution!
* Import material menu * Replace share button with menu * link three menu items to share function * feat: setup share to different platforms * fix: twitter hashtags * feat: configure facebook sharing * style: add spaces around imports * style: add spaces around if * feat: check platform exists * refactor: destructure sharing url varianle * Update packages/portal/src/app/rentalpage/rentalpage.component.html Co-authored-by: Yohan Lasorsa <noda@free.fr> --------- Co-authored-by: Yohan Lasorsa <noda@free.fr>
closes #255
While working on this I found a new issue the hashtags weren't added correctly to the twitter sharing link.
I fixed this issue now if you try to share on twitter the hashtags will appear.
Adding more platforms now will be much easier as it's only a copy-and-paste process. (see this)
![image](https://private-user-images.githubusercontent.com/64026625/262022435-c69b39e8-55fc-4c92-ae3e-5460d97ff961.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAwOTUyMDIsIm5iZiI6MTcyMDA5NDkwMiwicGF0aCI6Ii82NDAyNjYyNS8yNjIwMjI0MzUtYzY5YjM5ZTgtNTVmYy00YzkyLWFlM2UtNTQ2MGQ5N2ZmOTYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA0VDEyMDgyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk2NGY3MTZkZGJkZjViYTJlOGY0ZTQ5Y2MxNjQ4ZjNiNjk5MTRkMjNjMzIwMGRlZTAwMDAzNzNiNjNjZmYxMDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tGhAu5h5sZbMiAUySOnsUA4bM6WGApse_g0JDEnvxsQ)