Skip to content

Commit

Permalink
fix(inspector): fix eslint errors in useTabs
Browse files Browse the repository at this point in the history
Replace empty object type with Record<string, never> in handleClose event type
  • Loading branch information
BelfordZ committed Nov 29, 2024
1 parent 1ff097f commit 8d00054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/inspector/src/hooks/useTabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const useTabs = (defaultTabs?: ITab[]) => {
defaultTabs || [{ name: "New Tab", content: emptyJSONRPC, url: undefined, logs: [] }],
);

const handleClose = (event: React.MouseEvent<{}>, index: number) => {
const handleClose = (event: React.MouseEvent<Record<string, never>>, index: number) => {
if (tabs.length === 1) {
return;
}
Expand Down

0 comments on commit 8d00054

Please sign in to comment.