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