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

'CloseButton' is assigned a value but never used no-unused-vars #7

Open
Manuel-Suarez-Abascal opened this issue Nov 23, 2022 · 0 comments

Comments

@Manuel-Suarez-Abascal
Copy link

Describe the bug

The following variable is unused in the codebase causing a warning log in the dev console:

const CloseButton = styled.span`
  padding: 2px 3px;
  background-color: black;
  border-radius: 50%;
  color: white;
  position: absolute;
`;

Steps to reproduce:

  • start the project in development mode.
  • open the developer console in Chrome.

Expected results:

We shouldn't get any log error/warning message in the console.

Actual results:

We get the following warning log message:

Line 43:7:  'CloseButton' is assigned a value but never used  no-unused-vars

Screenshot 2022-11-23 at 3 50 35 PM

Proposed solution:

Let's remove the unused variable if it's not going to use. Otherwise, please point out where should be used so we can use it in the codebase accordingly.

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

No branches or pull requests

1 participant