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