Skip to content

Commit 0f4fab0

Browse files
author
[anudeep avula]
committed
Add toast notification for copied text
1 parent 0089b3e commit 0f4fab0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/pages/Home/Home.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
import { useGitHubAuth } from "../../hooks/useGitHubAuth";
2626
import { useGitHubData } from "../../hooks/useGitHubData";
2727
import { usePagination } from "../../hooks/usePagination";
28+
import toast from "react-hot-toast";
2829

2930
const ROWS_PER_PAGE = 10;
3031

@@ -86,6 +87,7 @@ const Home: React.FC = () => {
8687
const generateSharableLink = () => {
8788
const link = `${window.location.origin}/prs/${username}`;
8889
window.navigator.clipboard.writeText(link);
90+
toast.success("link copied to the clipboard");
8991
};
9092

9193
// Filter data based on selected criteria

0 commit comments

Comments
 (0)