Skip to content

Commit

Permalink
Version 1.0.0-rc lista
Browse files Browse the repository at this point in the history
  • Loading branch information
jdanign committed Apr 23, 2024
1 parent 1d6a735 commit 0b4f59f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion example/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ProductButtons, ProductCard, ProductImage, ProductTitle } from '../.';

const product = {
id: '1',
title: 'Coffee Mug - Card',
title: 'Coffee Mug - Card!',
/* img: './coffee-mug.png' */
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.0.1",
"version": "1.0.0-rc",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
9 changes: 4 additions & 5 deletions src/components/ProductCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ const {Provider} = ProductContext;
* Recibe la prop style para añadirla a los estilos que ya tenga el propio componente.
*/
export const ProductCard = ({children, product, className='', style, onChange, value=0, initialValues}:ProductCardProps)=>{
const {counter, maxCount, isMaxCountReached, increaseBy, reset} = useProduct({
product,
value,
initialValues,
onChange,
const {
counter, maxCount, isMaxCountReached, increaseBy, reset
} = useProduct({
product, value, initialValues, onChange,
});


Expand Down

0 comments on commit 0b4f59f

Please sign in to comment.