Refactor AboutSystemContainer component

master
Tudor Stanciu 2024-03-25 02:47:50 +02:00
parent 4ab78e51cd
commit a9b528d1f5
1 changed files with 15 additions and 18 deletions

View File

@ -1,35 +1,32 @@
import React from "react";
import { makeStyles } from "@mui/material/styles";
import { Box } from "@mui/material";
import AboutSystemComponent from "./AboutSystemComponent";
import SystemVersionContainer from "./SystemVersionContainer";
const useStyles = makeStyles(theme => {
return {
page: {
display: "flex",
flexDirection: "column"
},
element: {
marginTop: theme.spacing(1)
}
};
});
const styles = {
page: {
display: "flex",
flexDirection: "column"
},
element: {
marginTop: 1
}
};
const AboutSystemContainer = () => {
const classes = useStyles();
const handleOpenInNewTab = url => event => {
window.open(url, "_blank");
event.preventDefault();
};
return (
<div className={classes.page}>
<Box sx={styles.page}>
<AboutSystemComponent handleOpenInNewTab={handleOpenInNewTab} />
<div className={classes.element}>
<Box sx={styles.element}>
<SystemVersionContainer />
</div>
</div>
</Box>
</Box>
);
};
export default AboutSystemContainer;