style: json tree view
This commit is contained in:
parent
bff6749a91
commit
4afadb9502
@ -57,7 +57,7 @@ const AppBar = ({ config }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<MuiAppBar position="fixed" elevation={0}>
|
<MuiAppBar position="fixed" elevation={0} color="primary">
|
||||||
<Toolbar>
|
<Toolbar>
|
||||||
<Link classes={{ root: classes.logoLink }} href="/">
|
<Link classes={{ root: classes.logoLink }} href="/">
|
||||||
<div className={classes.logo}>
|
<div className={classes.logo}>
|
||||||
|
@ -14,9 +14,18 @@ const useStyles = makeStyles(() => ({
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
const useTreeStyles = makeStyles(
|
||||||
|
(theme) => ({
|
||||||
|
colorPrimary: {
|
||||||
|
color: theme.palette.secondary.main,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
{ name: "MuiTypography" },
|
||||||
|
);
|
||||||
|
|
||||||
const Json = ({ data }) => {
|
const Json = ({ data }) => {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
|
useTreeStyles();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<JsonTreeView
|
<JsonTreeView
|
||||||
|
@ -63,6 +63,9 @@ export const createTheme = (theme) =>
|
|||||||
primary: {
|
primary: {
|
||||||
main: "#0000F4",
|
main: "#0000F4",
|
||||||
},
|
},
|
||||||
|
secondary: {
|
||||||
|
main: "#A2A2FF",
|
||||||
|
},
|
||||||
background: {
|
background: {
|
||||||
default: "#18181A",
|
default: "#18181A",
|
||||||
secondary: "#18181A",
|
secondary: "#18181A",
|
||||||
|
Loading…
Reference in New Issue
Block a user