Adding LinkClicked to the copy button
This commit is contained in:
@@ -35,6 +35,7 @@ const Body = ({ share, appUrl }: { share: Share; appUrl: string }) => {
|
|||||||
<TextInput
|
<TextInput
|
||||||
readOnly
|
readOnly
|
||||||
variant="filled"
|
variant="filled"
|
||||||
|
style={{ borderColor: "green" }}
|
||||||
value={link}
|
value={link}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (linkClicked) return;
|
if (linkClicked) return;
|
||||||
@@ -48,6 +49,7 @@ const Body = ({ share, appUrl }: { share: Share; appUrl: string }) => {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
clipboard.copy(link);
|
clipboard.copy(link);
|
||||||
toast.success("Your link was copied to the keyboard.");
|
toast.success("Your link was copied to the keyboard.");
|
||||||
|
setLinkClicked(true);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<TbCopy />
|
<TbCopy />
|
||||||
|
|||||||
Reference in New Issue
Block a user