Skip to content

Commit

Permalink
feat: applied format to copy-to-clipboard functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardIvanov22 committed Nov 3, 2021
1 parent 51260e0 commit 29363f8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ const Notification: React.FC<NotificationProps> = props => {
const {notification, badge} = props;
const {createdAt, title, message} = notification;

const {isCopied, setCopyToClipboardState} = useCopyToClipboard(message);
const copyToClipboardMessage = `Title: ${title}. Description: ${message}.`;

const {isCopied, setCopyToClipboardState} = useCopyToClipboard(copyToClipboardMessage);

const onCopyToClipboard = () => {
if (isCopied) {
Expand Down

0 comments on commit 29363f8

Please sign in to comment.