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

Add: storybook + seo component + gutneberg style package #65

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bilouStrike
Copy link
Contributor

This PR aims to close #60 #53

@vercel
Copy link

vercel bot commented Jan 21, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/rtcamp/wp-decoupled/n3leu30cu
✅ Preview: https://wp-decoupled-git-setup-packages.rtcamp.now.sh

@NicestRudeGuy
Copy link
Contributor

@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",
Copy link
Contributor

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

Copy link
Contributor

@NicestRudeGuy NicestRudeGuy left a 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

.storybook/preview.js Show resolved Hide resolved
)
)}
<>
<NextSeo
Copy link
Contributor

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 (
Copy link
Contributor

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}
Copy link
Contributor

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",
Copy link
Contributor

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

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.

Add Gutenberg Style packages in Next.js
3 participants