-
Notifications
You must be signed in to change notification settings - Fork 5
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
remove a bunch of unused variables for eslint #250
base: main
Are you sure you want to change the base?
Conversation
❌ Deploy Preview for glittery-kulfi-b3068d failed.
|
57e3810
to
243342e
Compare
const [isLoading, setIsLoading] = useState(true); | ||
const { currentUser, sessionToken } = useAuth(); | ||
const [dishesUsed, setDishesUsed] = useState([]); | ||
const [isMobile, setIsMobile] = useState(window.innerWidth <= 768); | ||
const [isMobile, setIsMobile] = useState(window.innerWidth <= 768); // eslint-disable-line @typescript-eslint/no-unused-vars |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we do need this for styling - coz the app can run both on the desktop browser or mobile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@royayush1 yep I didn't take the line out!
// eslint-disable-line @typescript-eslint/no-unused-vars
tells eslint "I know that this line is violating the no-unused-vars rule but please ignore it"
Netlify build was failing due to
@typescript-eslint/no-unused-vars
; this should put it back into a good state