fix(share): copy thread link to clipboard instead of post link when sharing a reply, because reply links aren't implemented yet on plebbit

This commit is contained in:
plebeius.eth
2023-10-24 17:54:22 +02:00
parent d21a533212
commit e2da7e7e96
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -1542,7 +1542,7 @@ const All = () => {
onClick={() => {
handleOptionClick(reply.cid);
setNewSuccessMessage('Link copied to clipboard');
handleShareClick(thread.subplebbitAddress, reply.cid);
handleShareClick(thread.subplebbitAddress, thread.cid);
}}
>
Share post
@@ -2729,7 +2729,7 @@ const All = () => {
onClick={() => {
handleMobileOptionClick(reply.cid);
setNewSuccessMessage('Link copied to clipboard');
handleShareClick(selectedAddress, reply.cid);
handleShareClick(thread.subplebbitAddress, thread.cid);
}}
>
Share post
+2 -2
View File
@@ -2593,7 +2593,7 @@ const Board = () => {
onClick={() => {
handleOptionClick(reply.cid);
setNewSuccessMessage('Link copied to clipboard');
handleShareClick(selectedAddress, reply.cid);
handleShareClick(thread.subplebbitAddress, thread.cid);
}}
>
Share post
@@ -3799,7 +3799,7 @@ const Board = () => {
onClick={() => {
handleMobileOptionClick(reply.cid);
setNewSuccessMessage('Link copied to clipboard');
handleShareClick(selectedAddress, reply.cid);
handleShareClick(thread.subplebbitAddress, thread.cid);
}}
>
Share post
+2 -2
View File
@@ -1556,7 +1556,7 @@ const Subscriptions = () => {
onClick={() => {
handleOptionClick(reply.cid);
setNewSuccessMessage('Link copied to clipboard');
handleShareClick(thread.subplebbitAddress, reply.cid);
handleShareClick(thread.subplebbitAddress, thread.cid);
}}
>
Share post
@@ -2743,7 +2743,7 @@ const Subscriptions = () => {
onClick={() => {
handleMobileOptionClick(reply.cid);
setNewSuccessMessage('Link copied to clipboard');
handleShareClick(selectedAddress, reply.cid);
handleShareClick(thread.subplebbitAddress, thread.cid);
}}
>
Share post
+2 -2
View File
@@ -1585,7 +1585,7 @@ const Thread = () => {
onClick={() => {
handleOptionClick(reply.cid);
setNewSuccessMessage('Link copied to clipboard');
handleShareClick(selectedAddress, reply.cid);
handleShareClick(thread.subplebbitAddress, thread.cid);
}}
>
Share post
@@ -2527,7 +2527,7 @@ const Thread = () => {
onClick={() => {
handleMobileOptionClick(reply.cid);
setNewSuccessMessage('Link copied to clipboard');
handleShareClick(selectedAddress, reply.cid);
handleShareClick(thread.subplebbitAddress, thread.cid);
}}
>
Share post