diff --git a/lib/routes/home/widgets/payments_list/dialog/payment_details_dialog_destination_pubkey.dart b/lib/routes/home/widgets/payments_list/dialog/payment_details_dialog_destination_pubkey.dart index 537953fb..3e5c8e94 100644 --- a/lib/routes/home/widgets/payments_list/dialog/payment_details_dialog_destination_pubkey.dart +++ b/lib/routes/home/widgets/payments_list/dialog/payment_details_dialog_destination_pubkey.dart @@ -1,27 +1,21 @@ -import 'package:breez_translations/breez_translations_locales.dart'; -import 'package:flutter/material.dart'; +import 'package:flutter/widgets.dart'; import 'package:l_breez/models/payment_minutiae.dart'; import 'package:l_breez/routes/home/widgets/payments_list/dialog/shareable_payment_row.dart'; class PaymentDetailsDestinationPubkey extends StatelessWidget { final PaymentMinutiae paymentMinutiae; - const PaymentDetailsDestinationPubkey({ - super.key, - required this.paymentMinutiae, - }); + const PaymentDetailsDestinationPubkey({required this.paymentMinutiae, super.key}); @override Widget build(BuildContext context) { - final texts = context.texts(); final destinationPubkey = paymentMinutiae.swapId; - if (destinationPubkey.isNotEmpty) { - return ShareablePaymentRow( - title: texts.payment_details_dialog_single_info_node_id, - sharedValue: destinationPubkey, - ); - } else { - return Container(); - } + return destinationPubkey.isNotEmpty + ? ShareablePaymentRow( + // TODO: Move this message to Breez-Translations + title: "Swap ID", + sharedValue: destinationPubkey, + ) + : const SizedBox.shrink(); } }