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

[BUG]:Summary Component Type Error #198

Open
4 tasks done
iamabhishek2828 opened this issue Jul 3, 2024 · 3 comments
Open
4 tasks done

[BUG]:Summary Component Type Error #198

iamabhishek2828 opened this issue Jul 3, 2024 · 3 comments
Labels
gssoc Gssoc'24 Identifier level1 gssoc level1 issue

Comments

@iamabhishek2828
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

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

  • Environment: Development environment with TypeScript and React
  • Dependencies: List any relevant dependencies (react, typescript, etc.) and their versions.

Record

  • I agree to follow this project's Code of Conduct
  • I'm a GSSOC'24 contributor
  • I want to work on this issue
@github-actions github-actions bot added the level1 gssoc level1 issue label Jul 3, 2024
Copy link

github-actions bot commented Jul 3, 2024

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.

@github-actions github-actions bot added the gssoc Gssoc'24 Identifier label Jul 3, 2024
@iamabhishek2828
Copy link
Contributor Author

/assign-me

@priyankMS
Copy link

hello please assign me this task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc Gssoc'24 Identifier level1 gssoc level1 issue
Projects
None yet
Development

No branches or pull requests

2 participants