Skip to content

Commit 753a78d

Browse files
committed
fix: update logs-react to support openrpc document
1 parent 862a2fc commit 753a78d

File tree

3 files changed

+26
-9
lines changed

3 files changed

+26
-9
lines changed

package-lock.json

Lines changed: 19 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@material-ui/lab": "4.0.0-alpha.47",
5555
"@monaco-editor/react": "^2.3.0",
5656
"@open-rpc/client-js": "^1.3.1",
57-
"@open-rpc/logs-react": "^1.1.9",
57+
"@open-rpc/logs-react": "^1.1.11",
5858
"@open-rpc/meta-schema": "^1.7.0",
5959
"@open-rpc/schema-utils-js": "^1.12.0",
6060
"@rehooks/window-size": "^1.0.2",

src/containers/Inspector.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import CloseIcon from "@material-ui/icons/Close";
66
import FlashOn from "@material-ui/icons/FlashOn";
77
import FlashOff from "@material-ui/icons/FlashOff";
88
import History from "@material-ui/icons/History";
9+
import Keyboard from "@material-ui/icons/Keyboard";
910
import MonacoEditor from "@etclabscore/react-monaco-editor";
1011
import PlusIcon from "@material-ui/icons/Add";
1112
import DocumentIcon from "@material-ui/icons/Description";
@@ -552,11 +553,11 @@ const Inspector: React.FC<IProps> = (props) => {
552553
}
553554
{logs.length === 0 &&
554555
<Container maxWidth="sm">
555-
<Grid container justify="center" style={{ paddingTop: "20px" }}>
556-
<Typography variant="caption" gutterBottom>Press the Play button to see the results here.</Typography>
557-
<Typography variant="caption">
556+
<Grid container justify="center" style={{ paddingTop: "40px" }}>
557+
<Typography gutterBottom>Press the Play button to see the results here.</Typography>
558+
<Typography >
558559
Use&nbsp;
559-
<Button variant="contained" disabled size="small" style={{ marginRight: "3px" }}>
560+
<Button startIcon={<Keyboard />} variant="contained" disabled size="small" style={{ marginRight: "3px" }}>
560561
CTRL + SPACE
561562
</Button>
562563
to auto-complete in the editor.
@@ -566,7 +567,7 @@ const Inspector: React.FC<IProps> = (props) => {
566567
}
567568
{logs.length !== 0 &&
568569
<div style={{ height: "100%" }}>
569-
<JSONRPCLogger logs={logs} sidebarAlign={"right"} openRecentPayload={true} />
570+
<JSONRPCLogger openrpcDocument={openrpcDocument} logs={logs} sidebarAlign={"right"} openRecentPayload={true} />
570571
</div>
571572
}
572573
</>

0 commit comments

Comments
 (0)