-
Notifications
You must be signed in to change notification settings - Fork 1
Changes for removing warnings during npm run build #44
base: main
Are you sure you want to change the base?
Conversation
src/AdDetailsPage.js
Outdated
@@ -7,31 +7,30 @@ import AdDetailsContent from "./AdDetailsContent.js"; | |||
const getClusterURL = "/archive-id"; | |||
|
|||
function AdDetailsPage() { | |||
const [adIdParam, setAdIdParam] = useQueryParam('ad_id', StringParam); | |||
const adIdParam = useQueryParam('ad_id', StringParam); |
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 this is why /cluster
is broken. adIdParam is not a string now. it's an array of string and function. https://reactjs.org/docs/hooks-state.html#tip-what-do-square-brackets-mean
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.
for now, leave this line as is, and disable lint on it with a comment like https://github.com/OnlinePoliticalTransparency/ad_screener/blob/master/src/AdScreenerTool.js#L299
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.
Got it! Will do.
src/TimePeriodPicker.js
Outdated
console.log(startingDate); | ||
console.log(endingDate); |
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.
are these needed?
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 had added them to remove an unused variable warning. I'll disable lint instead.
No description provided.