Skip to content

Commit 0760fd4

Browse files
committed
Show success message after clicking clipboard icon
1 parent 54ae7b5 commit 0760fd4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/containers/post/PostViewer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import media from '../../lib/styles/media';
3333
import useNotFound from '../../lib/hooks/useNotFound';
3434
import { Helmet } from 'react-helmet-async';
3535
import { RootState } from '../../modules';
36+
import { toast } from 'react-toastify';
3637

3738
const UserProfileWrapper = styled(VelogResponsive)`
3839
margin-top: 16rem;
@@ -278,6 +279,7 @@ const PostViewer: React.FC<PostViewerProps> = ({
278279
break;
279280
case 'clipboard':
280281
copyText(link);
282+
toast.success('링크가 복사되었습니다.');
281283
break;
282284
default:
283285
}

0 commit comments

Comments
 (0)