chore: undo json comment
This commit is contained in:
parent
3ead0ee0d0
commit
e9d06f26d6
@ -2,26 +2,29 @@
|
|||||||
// Copyright 2020 DXOS.org
|
// Copyright 2020 DXOS.org
|
||||||
//
|
//
|
||||||
|
|
||||||
import React from 'react';
|
import React from "react";
|
||||||
import { makeStyles } from '@material-ui/core';
|
import { makeStyles } from "@material-ui/core";
|
||||||
|
|
||||||
// import { JsonTreeView } from '@lirewine/react-ux';
|
import { JsonTreeView } from "@lirewine/react-ux";
|
||||||
|
|
||||||
import { omitDeep } from '../util/omit';
|
import { omitDeep } from "../util/omit";
|
||||||
|
|
||||||
const useStyles = makeStyles(() => ({
|
const useStyles = makeStyles(() => ({
|
||||||
root: {
|
root: {
|
||||||
flex: 1
|
flex: 1,
|
||||||
}
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const Json = ({ data }) => {
|
const Json = ({ data }) => {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
|
|
||||||
return null
|
return null;
|
||||||
// return (
|
return (
|
||||||
// <JsonTreeView className={classes.root} data={omitDeep(data, '__typename')} />
|
<JsonTreeView
|
||||||
// );
|
className={classes.root}
|
||||||
|
data={omitDeep(data, "__typename")}
|
||||||
|
/>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Json;
|
export default Json;
|
||||||
|
Loading…
Reference in New Issue
Block a user