-
Notifications
You must be signed in to change notification settings - Fork 2
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
Integration of wordpress blog #1
Conversation
062463a
to
ac9d34d
Compare
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.
Please take a look on all of my comments on specific file/lines. Also, please fix below in general
- Please use .svg instead of .png
- You don't need to always wrap your component in
<>...</>
- Is it possible to use your
Button
component to replace usage of the purple-arrow image? Also please do not use such a generic name for this component. - Please use
<FormattedMessage />
for static text. Add corresponding translation tosrc/intl
as well. - Sub-components should be put above main component
src/components/BlogPost/index.js
Outdated
<ReadMore>Read more ...</ReadMore> | ||
<ViewCountContainer> | ||
<ViewCountImage src={viewCountIcon} /> | ||
<ViewCount>320</ViewCount> |
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.
How can we get this info instead of hardcoded?
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.
hided view count right now.
Don has created the view counts in wordpress, but cannot query in graphql(do not have that field in allWordpressPost/wordpressPost).
The only way to get the view count is getting from below url with postId
https://blog.measurable.ai/wp-json/pvc/v1/view/ + post id
Any suggestions?
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.
Lets handle this later
2. change sup component order
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.
Please check my comments and also:
- Please check again all redundant usages of
<>...</>
- Avoid creating redundant components
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.
One comment left. Please also fix style as discussed.
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.
Please match style with design on Zeplin. Also prefer to use margin
instead of top
to control distance between elements
Please review. Thanks!