Skip to content

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

@Manuel-Suarez-Abascal

Description

@Manuel-Suarez-Abascal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions