-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add: storybook + seo component + gutneberg style package #65
base: master
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/rtcamp/wp-decoupled/n3leu30cu |
@bilouStrike try not to overdo things and keep PRs seperate . its faster and easier to manage things this way |
"prettier": "^2.2.1", | ||
"serialize-javascript": "^2.1.2" | ||
} | ||
"name": "wp-decoupled", |
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.
dont format the package.json
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 resolve the conflict
) | ||
)} | ||
<> | ||
<NextSeo |
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 add a todo to make the seo data dynamic, that would later come from WordPress
@@ -4,45 +4,52 @@ import client from '../src/apollo/ApolloClient'; | |||
import AddToCartButton from '../src/components/cart/AddToCartButton'; | |||
import Hero from '../src/components/home/Hero'; | |||
import { PRODUCTS_QUERY } from '../src/queries'; | |||
import { NextSeo } from 'next-seo'; | |||
|
|||
const NewProducts = ({ products }) => { | |||
return ( |
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 add Prop types for products, using prop-types npm package
pages/index.js
Outdated
<span className="product-link"> | ||
<img | ||
className="product-image" | ||
src={item.image.sourceUrl} |
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.
use optional chaining
item?.image?.sourceUrl
"@storybook/addon-links": "^6.1.14", | ||
"@storybook/react": "^6.1.14", | ||
"@wordpress/base-styles": "^3.3.0", |
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.
Where are we using this package?
@wordpress/base-styles
, we need to import it in sass file
… into setup-packages pul merge
This PR aims to close #60 #53