-
Notifications
You must be signed in to change notification settings - Fork 153
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
xings music libary #95
base: main
Are you sure you want to change the base?
Conversation
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.
Great job with this project!
You have used components in a really good way, really practising passing props.
Good job with the strcutre of your files, and in the css as well.
When the projects grow, one idea is to split up the css to specific components as well. But more on that later!
Keep up the good work.
Album.propTypes = { | ||
album: PropTypes.shape({ | ||
name: PropTypes.string.isRequired, | ||
images: PropTypes.arrayOf( | ||
PropTypes.shape({ | ||
url: PropTypes.string.isRequired, | ||
}) | ||
).isRequired, | ||
external_urls: PropTypes.shape({ | ||
spotify: PropTypes.string.isRequired, | ||
}).isRequired, | ||
artists: PropTypes.arrayOf( | ||
PropTypes.shape({ | ||
name: PropTypes.string.isRequired, | ||
external_urls: PropTypes.shape({ | ||
spotify: PropTypes.string.isRequired, | ||
}).isRequired, | ||
}) | ||
).isRequired, | ||
}).isRequired, | ||
}; |
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.
Do you understand this part? We have not gone through it. It's important that you understand the code, even though you've gotten help from your collaborator. :)
AlbumList.propTypes = { | ||
albums: PropTypes.arrayOf(PropTypes.object).isRequired, | ||
}; |
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.
Again, prop types is nice to understand. But we haven't really gone thru it yet.
Netlify link
https://xingsmusiclibary.netlify.app/
Collaborators
My friend ChatGPT