-
Notifications
You must be signed in to change notification settings - Fork 9
Last round of lint fixes #46
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
See annotations
/** | ||
* withRouter, it specified, is the router to wrap the application with. | ||
*/ | ||
withRouter?: any; | ||
|
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 looked at index.tsx and realized that this only ever has one value, so I got rid of the prop passing as unnecessary complexity.
return ( | ||
<Router> |
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.
This got lifted up, which means we could get rid of the props and this wrapping.
@@ -713,8 +702,10 @@ export function ThemedAppView(props: { datastore: DataStore }) { | |||
return; | |||
} | |||
|
|||
cookieService.setRelationshipsEditorType(type); | |||
setRelationshipEditor(type); | |||
if (type === 'grid' || type === 'code') { |
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.
Narrowing
@@ -118,7 +118,7 @@ function InlinePlaygroundUI(props: { datastore: DataStore }) { | |||
); | |||
|
|||
const handleChangeTab = ( | |||
event: React.ChangeEvent<{}>, | |||
_event: React.ChangeEvent<object>, |
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.
MUI's types here are kinda jank. This satisfies the type without using {}
, since we can't use HTMLElement
here.
@@ -165,6 +165,7 @@ export function usePanelsCoordinator<L extends string>(props: PanelCoordinatorPr | |||
} | |||
} catch (e) { | |||
// Do nothing. | |||
console.error(e) |
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.
Sending it to the console in case someone wants to look, which also silences an unused var lint error.
Description
This is the last of the lint fixes.
Changes
Testing
Review. See that things pass.