AjobK / Seaqull

Seaqull programming blog
http://www.seaqull.com
4 stars 0 forks source link

369 refactor icon component #392

Closed ShifuBadal closed 2 years ago

ShifuBadal commented 2 years ago

closes #369


What is it supposed to do
This PR aims to add the functionality where adding icons by either FA or MUI is possible. Giving it a prefix={'mui'} with the corresponding iconName which can be found here, you can load a MUI icon.

Not giving it a prefix will automatically default to FA


How can we test your branch
I added a material icon to the comment section. Whenever you place a comment you can give it a like, reply or even delete it. I replaced the heart icon with a material one.

  1. After logging in, go to this page.
  2. Write a post, and click on create.
  3. After that, you can scroll down and add a comment to the post.
  4. You can see a heart icon appear, if you hover over it, it will become red too


Additional notes
It should still be possible to use FA, so all the existing icons should still work.


1. General checklist


2. If relevant, front-end checklist


4. If relevant, test these browsers


PR Rules
1. Add relevant labels.
2. Select at least two reviewers.
3. Assign all reviewers allowed to merge the branch, including yourself.
4. If relevant to the sprint, put related issue in 'Awaiting Approval' column on project board.
5. Add to the corresponding milestone.


Reviewer info
1. You can use aliases to refer to specific PR checklist items. For example 'Hey @JohnDoe, for this line please check 3.a and 1.d.'
2. Where possible, please use the suggestions feature in github so the author has a better idea of the solution you had in mind.


This form should be filled in by the author of this PR.