Refactor handleOpenInNewTab function in AboutSystemContainer.js

master^2
Tudor Stanciu 2024-11-10 01:11:02 +02:00
parent 0a3257dca3
commit 1ba19eb96c
1 changed files with 5 additions and 5 deletions

View File

@ -13,12 +13,12 @@ const styles = {
}
};
const AboutSystemContainer = () => {
const handleOpenInNewTab = url => event => {
const handleOpenInNewTab = url => event => {
window.open(url, "_blank");
event.preventDefault();
};
};
const AboutSystemContainer = () => {
return (
<Box sx={styles.page}>
<AboutSystemComponent handleOpenInNewTab={handleOpenInNewTab} />