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:
parent
a245b50e11
commit
9e575d307a
@ -1,4 +1,5 @@
|
|||||||
import React, { ReactElement } from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
|
import { toast } from 'react-toastify'
|
||||||
import styles from './Share.module.css'
|
import styles from './Share.module.css'
|
||||||
import Button from '@shared/atoms/Button'
|
import Button from '@shared/atoms/Button'
|
||||||
import ShareIcon from '@images/share.svg'
|
import ShareIcon from '@images/share.svg'
|
||||||
@ -10,6 +11,7 @@ export default function Share({
|
|||||||
}): ReactElement {
|
}): ReactElement {
|
||||||
function copyLink() {
|
function copyLink() {
|
||||||
navigator.clipboard.writeText(window.location.href + '/' + accountId)
|
navigator.clipboard.writeText(window.location.href + '/' + accountId)
|
||||||
|
toast.success('Profile link copied to clipboard')
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div className={styles.share}>
|
<div className={styles.share}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user