Skip to content
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

chore: Solve lint warnings #307

Merged
merged 3 commits into from
Jul 29, 2023
Merged

chore: Solve lint warnings #307

merged 3 commits into from
Jul 29, 2023

Conversation

Itzabelli
Copy link
Contributor

@Itzabelli Itzabelli commented Jul 28, 2023

Description

After ran yarn lint these errors and warnings are being recorded in the terminal.

⚠️ warning Classnames 'overflow-hidden, text-ellipsis, whitespace-nowrap' could be replaced by the 'truncate' shorthand! tailwindcss/enforces-shorthand.

⛔ error Run autofix to sort these imports! simple-import-sort/imports.

The purpose of this PR is to fix them.

Extra: I removed the unnecessary react import.

Related Issue

N/A

Motivation and Context

The intent of these changes are to solve warnings listed above.

How Has This Been Tested?

After making the changes, I ran yarn dev and I ensured that everything appears as expected and I confirmed that the console is not registering the warnings

Screenshots (if appropriate):

N/A

@vercel
Copy link

vercel bot commented Jul 28, 2023

@Itzabelli is attempting to deploy a commit to the Yearn Finance Team on Vercel.

A member of the Team first needs to authorize it.

@@ -92,7 +92,7 @@ function NetworkSelector({networks}: {networks: number[]}): ReactElement {
<div key={safeChainID} className={'relative z-50 mr-4'}>
<Listbox
value={safeChainID}
onChange={async (value: any): Promise<void> => onSwitchChain(value.value)}>
onChange={async (value: number): Promise<void> => onSwitchChain(value)}>
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@karelianpie karelianpie left a comment

Choose a reason for hiding this comment

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

 I reverse the replacement of the 'any'  type to the 'number' type, because it conflicts with other changes.
@karelianpie karelianpie requested a review from Majorfi July 28, 2023 06:54
@vercel
Copy link

vercel bot commented Jul 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
yearnfi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 28, 2023 8:41am

@karelianpie karelianpie added this pull request to the merge queue Jul 29, 2023
Merged via the queue into yearn:main with commit 84fb741 Jul 29, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants