@@ -3,7 +3,7 @@ import { MouseEventHandler, ReactNode } from 'react';
3
3
import styled , { css , useTheme } from 'styled-components' ;
4
4
5
5
import { formatNetworkAmount , isSameUtxo } from '@suite-common/wallet-utils' ;
6
- import { Checkbox , Row , Spinner , TextButton , Tooltip } from '@trezor/components' ;
6
+ import { Checkbox , Row , Spinner , Text , TextButton , Tooltip } from '@trezor/components' ;
7
7
import { CheckContainer } from '@trezor/components/src/components/form/Checkbox/Checkbox' ;
8
8
import { AccountUtxo } from '@trezor/connect' ;
9
9
import { borders , spacings , spacingsPx , typography } from '@trezor/theme' ;
@@ -174,7 +174,7 @@ export const UtxoSelection = ({ transaction, utxo }: UtxoSelectionProps) => {
174
174
} ,
175
175
} = useSendFormContext ( ) ;
176
176
// selecting metadata from store rather than send form context which does not update on metadata change
177
- const { outputLabels } = useSelector ( selectLabelingDataForSelectedAccount ) ;
177
+ const { addressLabels , outputLabels } = useSelector ( selectLabelingDataForSelectedAccount ) ;
178
178
179
179
const dispatch = useDispatch ( ) ;
180
180
@@ -247,8 +247,18 @@ export const UtxoSelection = ({ transaction, utxo }: UtxoSelectionProps) => {
247
247
iconColor = { utxoTagIconColor }
248
248
/>
249
249
) }
250
-
251
- < Address > { utxo . address } </ Address >
250
+ < Text typographyStyle = "hint" >
251
+ < MetadataLabeling
252
+ payload = { {
253
+ type : 'addressLabel' ,
254
+ entityKey : account . key ,
255
+ defaultValue : utxo . address ,
256
+ value : addressLabels [ utxo . address ] ,
257
+ } }
258
+ isDisabled
259
+ defaultVisibleValue = { < Address > { utxo . address } </ Address > }
260
+ />
261
+ </ Text >
252
262
253
263
< StyledCryptoAmount
254
264
value = { formatNetworkAmount ( utxo . amount , account . symbol ) }
0 commit comments