Refactor MachineCollapsedContent.js to use inline styles
parent
c3cb995e86
commit
b3bdb38997
|
@ -3,23 +3,21 @@ import PropTypes from "prop-types";
|
|||
import MachineLog from "./MachineLog";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import { useSensitiveInfo } from "../../../../hooks";
|
||||
import { makeStyles } from "@mui/material/styles";
|
||||
|
||||
const useStyles = makeStyles(_theme => ({
|
||||
panel: {
|
||||
display: "flex"
|
||||
},
|
||||
label: {
|
||||
marginRight: "4px"
|
||||
}
|
||||
}));
|
||||
|
||||
const MachineDescription = ({ description }) => {
|
||||
const classes = useStyles();
|
||||
|
||||
return (
|
||||
<div className={classes.panel}>
|
||||
<Typography variant="body2" className={classes.label} color="textSecondary">
|
||||
<div
|
||||
style={{
|
||||
display: "flex"
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
variant="body2"
|
||||
sx={{
|
||||
marginRight: "4px"
|
||||
}}
|
||||
color="textSecondary"
|
||||
>
|
||||
{"Description:"}
|
||||
</Typography>
|
||||
<Typography variant="body2" color="textSecondary">
|
||||
|
|
Loading…
Reference in New Issue