From 498dca8afac75518e038e658896411b626db53df Mon Sep 17 00:00:00 2001 From: Agustin Pane Date: Wed, 6 May 2020 09:54:20 -0300 Subject: [PATCH] Fixs click away listener (#874) --- .../AddressBook/EllipsisTransactionDetails/index.jsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/routes/safe/components/AddressBook/EllipsisTransactionDetails/index.jsx b/src/routes/safe/components/AddressBook/EllipsisTransactionDetails/index.jsx index 62cf8ff8..1e5d2975 100644 --- a/src/routes/safe/components/AddressBook/EllipsisTransactionDetails/index.jsx +++ b/src/routes/safe/components/AddressBook/EllipsisTransactionDetails/index.jsx @@ -1,6 +1,5 @@ // @flow -import { Divider } from '@material-ui/core' -import ClickAwayListener from '@material-ui/core/ClickAwayListener' +import { ClickAwayListener, Divider } from '@material-ui/core' import Menu from '@material-ui/core/Menu' import MenuItem from '@material-ui/core/MenuItem' import { makeStyles } from '@material-ui/core/styles' @@ -25,6 +24,7 @@ const useStyles = makeStyles({ '&:hover': { backgroundColor: '#F0EFEE', }, + outline: 'none', }, increasedPopperZindex: { zIndex: 2001, @@ -43,9 +43,7 @@ const EllipsisTransactionDetails = ({ address, knownAddress }: EllipsisTransacti const dispatch = useDispatch() const currentSafeAddress = useSelector(safeParamAddressFromStateSelector) - const handleClick = (event) => { - setAnchorEl(event.currentTarget) - } + const handleClick = (event) => setAnchorEl(event.currentTarget) const closeMenuHandler = () => setAnchorEl(null) @@ -56,8 +54,8 @@ const EllipsisTransactionDetails = ({ address, knownAddress }: EllipsisTransacti return ( -
- +
+ Send Again