Skip to content

Commit

Permalink
Ui improving in process
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksKSoftware committed Sep 28, 2023
1 parent e9b5f4e commit 910458b
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions src/Pages/Wallets.razor
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,18 @@
<TextEdit @bind-Text="_transferTargetWalletBalance" PlainText Disabled/>
</Field>
</Column>
<Column ColumnSize="ColumnSize.Is12" style="display: flex; flex-direction: row; align-items: center;">
<div style="display: flex; justify-content: space-between; align-items: center;">
<Field>
<FieldBody>
<Check TValue="bool" @bind-Checked="@_transferAllFunds">Transfer all funds</Check>
</FieldBody>
</Field>
</div>
</Column>
<Column ColumnSize="ColumnSize.Is6">
<Validation Validator="args => ValidationHelper.ValidateWithdrawalAmount(args, _transferAllFunds)">
<Field>
<FieldLabel>Amount</FieldLabel>
<FieldBody>
Expand All @@ -485,15 +495,21 @@
</Field>
</Validation>
</Column>
<Column ColumnSize="ColumnSize.Is6">
<Field>
<FieldBody>
<Check TValue="bool" @bind-Checked="@_transferAllFunds">Transfer all funds</Check>
</FieldBody>
</Field>
</Column>
<Validation Validator="args => ValidationHelper.ValidateWithdrawalAmount(args, _transferAllFunds)">
<Field>
<FieldLabel>Amount</FieldLabel>
<FieldBody>
<NumericPicker TValue="decimal" Disabled="_transferAllFunds" @bind-Value="@_amountToTransfer" CurrencySymbol="₿ " Max="@_maxWithdrawal" Min="@_minWithdrawal" Decimals="8">
<Feedback>
<ValidationError/>
</Feedback>
</NumericPicker>
</FieldBody>
<FieldHelp>
@($"Current amount: {Math.Round(PriceConversionService.BtcToUsdConversion((decimal) _amountToTransfer, _btcPrice), 2)} USD")
</FieldHelp>
</Field>
</Validation>
</Validations>
</Fields>
Expand Down

0 comments on commit 910458b

Please sign in to comment.