@@ -72,7 +72,12 @@ import {
7272} from '../../store/slices/metadata' ;
7373import { getTransactions } from '../../utils/wallet/electrum' ;
7474import { ITransaction , ITxHash } from '../../utils/wallet' ;
75- import { ellipsis , getDurationForBlocks , openURL } from '../../utils/helpers' ;
75+ import {
76+ ellipsis ,
77+ getDurationForBlocks ,
78+ openURL ,
79+ vibrate ,
80+ } from '../../utils/helpers' ;
7681import { getBoostedTransactionParents } from '../../utils/boost' ;
7782import { showToast } from '../../utils/notifications' ;
7883import {
@@ -81,6 +86,7 @@ import {
8186 transferSelector ,
8287} from '../../store/reselect/wallet' ;
8388import {
89+ commentSelector ,
8490 slashTagsUrlSelector ,
8591 tagSelector ,
8692} from '../../store/reselect/metadata' ;
@@ -684,6 +690,7 @@ const LightningActivityDetail = ({
684690
685691 const dispatch = useAppDispatch ( ) ;
686692 const tags = useAppSelector ( ( state ) => tagSelector ( state , id ) ) ;
693+ const comment = useAppSelector ( ( state ) => commentSelector ( state , id ) ) ;
687694 const slashTagsUrl = useAppSelector ( ( state ) => {
688695 return slashTagsUrlSelector ( state , id ) ;
689696 } ) ;
@@ -717,6 +724,7 @@ const LightningActivityDetail = ({
717724
718725 const onCopy = ( text : string ) : void => {
719726 Clipboard . setString ( text ) ;
727+ vibrate ( ) ;
720728 showToast ( {
721729 type : 'success' ,
722730 title : t ( 'copied' ) ,
@@ -910,7 +918,9 @@ const LightningActivityDetail = ({
910918 ) }
911919
912920 { message ? (
913- < View style = { styles . invoiceNote } >
921+ < TouchableOpacity
922+ style = { styles . invoiceNote }
923+ onPress = { ( ) : void => onCopy ( message ) } >
914924 < Caption13Up style = { styles . sText } color = "secondary" >
915925 { t ( 'activity_invoice_note' ) }
916926 </ Caption13Up >
@@ -922,7 +932,25 @@ const LightningActivityDetail = ({
922932 < Title testID = "InvoiceNote" > { message } </ Title >
923933 </ View >
924934 </ ThemedView >
925- </ View >
935+ </ TouchableOpacity >
936+ ) : null }
937+
938+ { comment ? (
939+ < TouchableOpacity
940+ style = { styles . invoiceNote }
941+ onPress = { ( ) : void => onCopy ( comment ) } >
942+ < Caption13Up style = { styles . sText } color = "secondary" >
943+ { t ( 'activity_invoice_comment' ) }
944+ </ Caption13Up >
945+ < ThemedView color = "white10" >
946+ < Canvas style = { styles . zRoot } >
947+ < ZigZag color = { colors . background } />
948+ </ Canvas >
949+ < View style = { styles . note } >
950+ < Title testID = "InvoiceComment" > { comment } </ Title >
951+ </ View >
952+ </ ThemedView >
953+ </ TouchableOpacity >
926954 ) : null }
927955
928956 < View >
0 commit comments