From e1d4c0b24b71b2f9c7be1ab193713e3d06fcedd3 Mon Sep 17 00:00:00 2001 From: Erdem Yerebasmaz Date: Mon, 1 Jul 2024 13:57:14 +0300 Subject: [PATCH] Fix title of destination pubkey --- ...ent_details_dialog_destination_pubkey.dart | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) 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(); } }