From 9e575d307a7c027aaf8f178e5ba331a4f8a606ec Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Thu, 5 Jan 2023 11:53:45 +0000 Subject: [PATCH] Adding toast success message --- src/components/Profile/Header/Share.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Profile/Header/Share.tsx b/src/components/Profile/Header/Share.tsx index 70f9b2d46..d0a781d16 100644 --- a/src/components/Profile/Header/Share.tsx +++ b/src/components/Profile/Header/Share.tsx @@ -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 (