refactor(app): move account razor inline code to partial classes
This commit is contained in:
20
src/Duempelkas.App/Components/Accounts/AccountCard.razor.cs
Normal file
20
src/Duempelkas.App/Components/Accounts/AccountCard.razor.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Duempelkas.App.Services.Models;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace Duempelkas.App.Components.Accounts;
|
||||
|
||||
public partial class AccountCard
|
||||
{
|
||||
#region Parameters
|
||||
|
||||
[Parameter]
|
||||
public AccountSummaryDto Account { get; set; } = default!;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Actions
|
||||
|
||||
private void Navigate() => Navigation.NavigateTo($"/accounts/{Account.Id}");
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user