-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Hi there. You guys have some pretty smelly code and ways to improve the code of this file.
Proposal
The code above is one example of declaring a variable and using it in an if statement right after.
This 2nd code snippet is another example of using a recently-declared variable for an if statement.
There are more examples across the whole repo. I propose that we have one way of doing this across the code base.
This PR is also open to fix that issue in this file.
Affected component/components
CSS utility function
How to reproduce
-
Go to this file
-
Navigate to lines - 523 and 527.
-
You'll be able to see the different usages.
Codesandbox/StackBlitz link
No response
Logs
System Info
N/ABefore submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working