Skip to content

Commit

Permalink
refactor: change the text for share
Browse files Browse the repository at this point in the history
  • Loading branch information
JinleeJeong committed Apr 21, 2024
1 parent 43043de commit 3dcb4a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/common/navigation-bar/navigation-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ const NavigationBar = () => {
navigator.share({ ...ShareData, url: window.location.href });
} else {
await navigator.clipboard.writeText(window.location.href);
toast.custom((t) => <Toast t={t} title={`copied`} />);
toast.custom((t) => <Toast t={t} title={`copied to clipboard`} />);
}
} catch (e) {
toast.custom((t) => <Toast t={t} title={`Sharing not supported or data not shareable.`} />);
toast.custom((t) => <Toast t={t} title={`Sharing is not supported on this device`} />);
}
};

Expand Down

0 comments on commit 3dcb4a1

Please sign in to comment.