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