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