1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Adding toast success message

This commit is contained in:
Jamie Hewitt 2023-01-05 11:53:45 +00:00
parent a245b50e11
commit 9e575d307a

View File

@ -1,4 +1,5 @@
import React, { ReactElement } from 'react'
import { toast } from 'react-toastify'
import styles from './Share.module.css'
import Button from '@shared/atoms/Button'
import ShareIcon from '@images/share.svg'
@ -10,6 +11,7 @@ export default function Share({
}): ReactElement {
function copyLink() {
navigator.clipboard.writeText(window.location.href + '/' + accountId)
toast.success('Profile link copied to clipboard')
}
return (
<div className={styles.share}>