Indie-Kart / ecommerce-store

https://indiekart.vercel.app/
MIT License
39 stars 59 forks source link

[BUG]:Summary Component Type Error #198

Open iamabhishek2828 opened 3 days ago

iamabhishek2828 commented 3 days ago

Is there an existing issue for this?

What happened?

Issue Description

Summary Component Type Error

Description

When using the Summary component, TypeScript throws a type error related to the quantity prop binding element.

Steps to Reproduce

  1. Use the Summary component with a prop named quantity.
  2. Ensure the component is integrated with TypeScript.

Expected Behavior

The quantity prop should be correctly typed to prevent TypeScript errors.

Actual Behavior

TypeScript shows the error:

Type error: Binding element 'quantity' implicitly has an 'any' type.

Code Snippet

// Example code snippet causing the issue
const Summary = ({quantity}) => {
  // Component logic
};

Additional Information

Record

github-actions[bot] commented 3 days ago

Hello @iamabhishek2828! Thanks for creating issue #198 on #Indie-Kart/ecommerce-store.Please Comment /assign-me to self assign this issue to yourself, and please don't forget to star this repo.

iamabhishek2828 commented 3 days ago

/assign-me

priyankMS commented 3 days ago

hello please assign me this task