diff --git a/Client/src/Components/Alert/index.jsx b/Client/src/Components/Alert/index.jsx index cacd0f058..7cdc972a5 100644 --- a/Client/src/Components/Alert/index.jsx +++ b/Client/src/Components/Alert/index.jsx @@ -27,7 +27,7 @@ const icons = { * @returns {JSX.Element} */ -const Alert = ({ variant, title, body, toast, hasIcon = true, onClick }) => { +const Alert = ({ variant, title, body, isToast, hasIcon = true, onClick }) => { const theme = useTheme(); const { bg, border, color } = theme.alert[variant]; const icon = icons[variant]; @@ -50,7 +50,7 @@ const Alert = ({ variant, title, body, toast, hasIcon = true, onClick }) => { {title && {title}} {body && {body}} - {hasIcon && toast && ( + {hasIcon && isToast && ( )} - {toast && ( + {isToast && ( { "&:focus": { outline: "none", }, + "& .MuiTouchRipple-root": { + pointerEvents: "none", + display: "none", + }, }} > {