-
Notifications
You must be signed in to change notification settings - Fork 190
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
base: main
Are you sure you want to change the base?
Conversation
@Seek4samurai is attempting to deploy a commit to the Novu Team on Vercel. A member of the Team first needs to authorize it. |
Kindly go through the PR. |
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.', |
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.
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) => ( |
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.
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.
No breaking changes.