From 818d6335e9d64389c8088cf1a552e2252c9c2ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Wed, 26 Jan 2022 07:10:30 +0400 Subject: [PATCH] Replace onClick by Link mui component in Rezo --- components/rezo.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/components/rezo.js b/components/rezo.js index 562fb81..1850d45 100644 --- a/components/rezo.js +++ b/components/rezo.js @@ -1,13 +1,15 @@ -import {IconButton, Stack} from '@mui/material' +import {IconButton, Stack, Link} from '@mui/material' import PropTypes from 'prop-types' export default function Rezo({rezo}) { const {tit, lyen, icon} = rezo return ( - window.open(lyen, '_blank')}> - {icon} - + + + {icon} + + ) }