We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When we were using product mocks, it was working fine, when i started using the commerce.js ones, the website compiled but it was just a blank screen
`import React from 'react'; import { Card, CardMedia, CardContent, CardActions, Typography, IconButton } from '@material-ui/core'; import { AddShoppingCart } from '@material-ui/icons';
import useStyles from './styles';
const Product = ({ product, onAddToCart }) => { const classes = useStyles();
const handleAddToCart = () => onAddToCart(product.id, 1);
return (
export default Product;`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When we were using product mocks, it was working fine, when i started using the commerce.js ones, the website compiled but it was just a blank screen
`import React from 'react';
import { Card, CardMedia, CardContent, CardActions, Typography, IconButton } from '@material-ui/core';
import { AddShoppingCart } from '@material-ui/icons';
import useStyles from './styles';
const Product = ({ product, onAddToCart }) => {
const classes = useStyles();
const handleAddToCart = () => onAddToCart(product.id, 1);
return (
{product.name}
${product.price.formatted}
<Typography dangerouslySetInnerHTML={{ __html: product.description }} variant="body2" color="textSecondary" component="p" />
);
};
export default Product;`
The text was updated successfully, but these errors were encountered: