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

style: added swag item's popup & desc #39

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Seek4samurai
Copy link

@Seek4samurai Seek4samurai commented Oct 4, 2022

  1. Added React-icons to package.json.
  2. Added Description for each Swag item.
  3. Now users can click on Swag items to read about them.

No breaking changes.

@vercel
Copy link

vercel bot commented Oct 4, 2022

@Seek4samurai is attempting to deploy a commit to the Novu Team on Vercel.

A member of the Team first needs to authorize it.

@Seek4samurai
Copy link
Author

Kindly go through the PR.

@nevo-david
Copy link
Contributor

Thank you! added a small comment!

const desc = [
{
id: '0',
desc: 'Get the best fit for you and your team! Hacksquad T-shirts for all the coolest contributors.',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add also the image path here, and then we can just run over this array to display the picture

</p>

<ul className="grid-gap relative mt-20 grid grid-cols-4 md:mt-16 sm:mt-10 sm:grid-cols-2">
{swagList.map((item, index) => (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of going over the swagList array and using index to fetch items, you might want to add the image in the desc array file itself and just iterate over that array.

In that way you won't have to import image in different file and also you want have to rely on index position to get title and description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants