Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejonas committed Mar 13, 2020
1 parent 90e0ef9 commit 2248fb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const App: React.FC = () => {
}
privateSetHorizontalSplit(val);
};
const [inspectorContents, setInspectorContents] = useInspectorActionStore();
const [inspectorContents] = useInspectorActionStore();
useMonacoReplaceMetaSchema(editor);
useMonacoVimMode(editor);

Expand Down Expand Up @@ -112,6 +112,7 @@ const App: React.FC = () => {
if (inspectorContents) {
setHorizontalSplit(true);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [inspectorContents]);
return (
<MuiThemeProvider theme={currentTheme}>
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/InspectorPlugin.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import React from "react";
import Inspector from "@open-rpc/inspector";
import { Grid, Button, Tooltip } from "@material-ui/core";
import { Button, Tooltip } from "@material-ui/core";
import { IMethodPluginProps } from "@open-rpc/docs-react/build/Methods/Methods";
import searchBarStore from "../stores/searchBarStore";
import { ExamplePairingObject, ExampleObject } from "@open-rpc/meta-schema";
import useInspectorActionStore from "../stores/inspectorActionStore";

const InspectorPlugin: React.FC<IMethodPluginProps> = (props) => {
const [searchUrl] = searchBarStore();
const [inspectorContents, setInspectorContents] = useInspectorActionStore();
const [, setInspectorContents] = useInspectorActionStore();
const method = props.openrpcMethodObject;
const examplePosition = 0;
let example;
Expand All @@ -28,7 +27,8 @@ const InspectorPlugin: React.FC<IMethodPluginProps> = (props) => {
method: method.name,
params: exampleParams || [],
},
})}>🕵️‍♂️ Try It Now</Button>
})}><span role="img" aria-label="try-it-inspector">🕵️‍♂️</span>️️ Try It Now</Button>

</Tooltip>
);
};
Expand Down

0 comments on commit 2248fb5

Please sign in to comment.