-
Notifications
You must be signed in to change notification settings - Fork 1
Fix Warnings #1152
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
base: main
Are you sure you want to change the base?
Fix Warnings #1152
Conversation
| import React, { useState } from "react"; | ||
| import Page from "../../Page"; | ||
| import Explainer from "./Explainer"; | ||
| import { gql, useQuery } from "@apollo/client"; |
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'm getting a warning that says 'gql' is defined but never used. Allowed unused vars must match /^_/u from the frontend build. Was this left in on purpose for something in the future?
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.
Oops that as an oversight on my part, thanks for catching that. fixed now.
I think now all the remaining ones are larger things that should be addressed separately but lmk if you think differently.
|
|
||
| const [name, setName] = useState(""); | ||
| const [imageUrl, setImageUrl] = useState(""); | ||
| const [imageUrl, _] = useState(""); |
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.
It feels silly to use useState here, no?
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.
excellent point, just gonna use an empty string
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 wanted to do the cool remove warning PR this time
Periodic scan through and fix of general warnings. Mostly