Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Changes for removing warnings during npm run build#44

Open
swaaaaaathii wants to merge 2 commits intomainfrom
feature/warning_cleanup
Open

Changes for removing warnings during npm run build#44
swaaaaaathii wants to merge 2 commits intomainfrom
feature/warning_cleanup

Conversation

@swaaaaaathii
Copy link
Copy Markdown
Contributor

No description provided.

@swaaaaaathii swaaaaaathii requested a review from macpd July 27, 2020 22:53
Comment thread src/AdDetailsPage.js Outdated

function AdDetailsPage() {
const [adIdParam, setAdIdParam] = useQueryParam('ad_id', StringParam);
const adIdParam = useQueryParam('ad_id', StringParam);
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! Will do.

Comment thread src/TimePeriodPicker.js Outdated
Comment on lines +19 to +20
console.log(startingDate);
console.log(endingDate);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these needed?

Copy link
Copy Markdown
Contributor Author

@swaaaaaathii swaaaaaathii Jul 28, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants