Refactor handleOpenInNewTab function in AboutSystemContainer.js
parent
0a3257dca3
commit
1ba19eb96c
|
@ -13,12 +13,12 @@ const styles = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const AboutSystemContainer = () => {
|
const handleOpenInNewTab = url => event => {
|
||||||
const handleOpenInNewTab = url => event => {
|
|
||||||
window.open(url, "_blank");
|
window.open(url, "_blank");
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const AboutSystemContainer = () => {
|
||||||
return (
|
return (
|
||||||
<Box sx={styles.page}>
|
<Box sx={styles.page}>
|
||||||
<AboutSystemComponent handleOpenInNewTab={handleOpenInNewTab} />
|
<AboutSystemComponent handleOpenInNewTab={handleOpenInNewTab} />
|
||||||
|
|
Loading…
Reference in New Issue