diff --git a/src/components/EtherscanBtn/index.jsx b/src/components/EtherscanBtn/index.jsx index be02c48a..ea1dc738 100644 --- a/src/components/EtherscanBtn/index.jsx +++ b/src/components/EtherscanBtn/index.jsx @@ -1,13 +1,13 @@ // @flow import React from 'react' import Tooltip from '@material-ui/core/Tooltip' -import { withStyles } from '@material-ui/core/styles' +import { makeStyles } from '@material-ui/core/styles' import Img from '~/components/layout/Img' import { getEtherScanLink } from '~/logic/wallets/getWeb3' import { xs } from '~/theme/variables' import SearchIcon from './search.svg' -const styles = () => ({ +const useStyles = makeStyles({ container: { display: 'flex', justifyContent: 'center', @@ -19,30 +19,34 @@ const styles = () => ({ backgroundColor: '#F0EFEE', }, }, + inreasedPopperZindex: { + zIndex: 2001, + }, }) type EtherscanBtnProps = { type: 'tx' | 'address', value: string, - classes: Object, + increaseZindex?: boolean, } -const EtherscanBtn = ({ - type, value, classes, -}: EtherscanBtnProps) => ( - - - Etherscan - - -) +const EtherscanBtn = ({ type, value, increaseZindex = false }: EtherscanBtnProps) => { + const classes = useStyles() + const customClasses = increaseZindex ? { popper: classes.inreasedPopperZindex } : {} -const EtherscanBtnWithStyles = withStyles(styles)(EtherscanBtn) + return ( + + + Etherscan + + + ) +} -export default EtherscanBtnWithStyles +export default EtherscanBtn diff --git a/src/components/Header/component/ProviderDetails/UserDetails.jsx b/src/components/Header/component/ProviderDetails/UserDetails.jsx index 72635cdb..a0d30435 100644 --- a/src/components/Header/component/ProviderDetails/UserDetails.jsx +++ b/src/components/Header/component/ProviderDetails/UserDetails.jsx @@ -119,7 +119,7 @@ const UserDetails = ({ {userAddress && ( <> - + )}