mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
add toast after copy address
This commit is contained in:
parent
0affb26995
commit
ba0082b80c
@ -3,6 +3,7 @@ import styles from './Header.module.css'
|
||||
import { useWeb3 } from '@context/Web3'
|
||||
import { useOrbis } from '@context/Orbis'
|
||||
import { didToAddress } from '@utils/orbis'
|
||||
import { toast } from 'react-toastify'
|
||||
import ChatBubble from '@images/chatbubble.svg'
|
||||
import ArrowBack from '@images/arrow.svg'
|
||||
import ChevronUp from '@images/chevronup.svg'
|
||||
@ -48,7 +49,7 @@ export default function Header() {
|
||||
_address = didToAddress(recipients[0])
|
||||
}
|
||||
navigator.clipboard.writeText(_address)
|
||||
alert('Address copied to clipboard')
|
||||
toast.info('Address copied to clipboard')
|
||||
}
|
||||
} else {
|
||||
setOpenConversations(!openConversations)
|
||||
|
Loading…
Reference in New Issue
Block a user