Remove obsoleted code (InsufficientBalanceDialog)
DELETE
WalletWasabi.Fluent/ViewModels/Dialogs/InsufficientBalanceDialogViewModel.cs
-using ReactiveUI;
-using WalletWasabi.Fluent.Models;
-using WalletWasabi.Fluent.ViewModels.Dialogs.Base;
-
-namespace WalletWasabi.Fluent.ViewModels.Dialogs;
-
-[NavigationMetaData(Title = "Insufficient Balance")]
-public partial class InsufficientBalanceDialogViewModel : DialogViewModelBase<bool>
-{
- public InsufficientBalanceDialogViewModel(BalanceType type)
- {
- Question = type switch
- {
- BalanceType.Private => $"There are not enough private funds to cover the transaction fee. Instead of an extra cost, Wasabi can subtract the transaction fee from the amount.",
- BalanceType.Pocket => $"There are not enough funds selected to cover the transaction fee. Instead of an extra cost, Wasabi can subtract the transaction fee from the amount.",
- _ => $"There are not enough funds available to cover the transaction fee. Instead of an extra cost, Wasabi can subtract the transaction fee from the amount.",
- };
-
- Question += "\n\nWould you like to do this instead?";
-
- NextCommand = ReactiveCommand.Create(() => Close(result: true));
- CancelCommand = ReactiveCommand.Create(() => Close(DialogResultKind.Cancel));
-
- SetupCancel(enableCancel: false, enableCancelOnEscape: true, enableCancelOnPressed: false);
- }
-
- public string Question { get; }
-}

DELETE
WalletWasabi.Fluent/Views/Dialogs/InsufficientBalanceDialogView.axaml
-<UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:c="using:WalletWasabi.Fluent.Controls"
- xmlns:dialog="using:WalletWasabi.Fluent.ViewModels.Dialogs"
- mc:Ignorable="d" d:DesignWidth="428" d:DesignHeight="371"
- x:DataType="dialog:InsufficientBalanceDialogViewModel"
- x:CompileBindings="True"
- x:Class="WalletWasabi.Fluent.Views.Dialogs.InsufficientBalanceDialogView">
- <c:ContentArea Title="{Binding Title}">
- <c:QuestionControl YesCommand="{Binding NextCommand}"
- NoCommand="{Binding CancelCommand}"
- HighlightButton="YesButton">
- <c:QuestionControl.IconContent>
- <Viewbox MaxHeight="150" Margin="40">
- <PathIcon Data="{StaticResource warning_regular}" Opacity="0.6"/>
- </Viewbox>
- </c:QuestionControl.IconContent>
- <TextBlock Text="{Binding Question}" TextWrapping="Wrap" TextAlignment="Center"/>
- </c:QuestionControl>
- </c:ContentArea>
-</UserControl>

DELETE
WalletWasabi.Fluent/Views/Dialogs/InsufficientBalanceDialogView.axaml.cs
-using Avalonia.Controls;
-using Avalonia.Markup.Xaml;
-
-namespace WalletWasabi.Fluent.Views.Dialogs;
-
-public class InsufficientBalanceDialogView : UserControl
-{
- public InsufficientBalanceDialogView()
- {
- InitializeComponent();
- }
-
- private void InitializeComponent()
- {
- AvaloniaXamlLoader.Load(this);
- }
-}

Remove obsoleted code (InsufficientBalanceDialog)