forked from cerc-io/laconic-console
* Use published packages in lirewine * Remove console-server package * Use dxos packages until lirewine packages are published * Use published cerc-io/laconic-sdk package * Add readme to run console app with laconicd
27 lines
458 B
JavaScript
27 lines
458 B
JavaScript
//
|
|
// Copyright 2020 DXOS.org
|
|
//
|
|
|
|
import React from 'react';
|
|
import { makeStyles } from '@material-ui/core';
|
|
|
|
import { JsonTreeView } from '@lirewine/react-ux';
|
|
|
|
import { omitDeep } from '../util/omit';
|
|
|
|
const useStyles = makeStyles(() => ({
|
|
root: {
|
|
flex: 1
|
|
}
|
|
}));
|
|
|
|
const Json = ({ data }) => {
|
|
const classes = useStyles();
|
|
|
|
return (
|
|
<JsonTreeView className={classes.root} data={omitDeep(data, '__typename')} />
|
|
);
|
|
};
|
|
|
|
export default Json;
|