Moved RedirectToLogin code to code behind

This commit is contained in:
Khwezi Mngoma
2026-06-13 22:14:21 +02:00
parent 6d76442dcf
commit ff826f0b73
4 changed files with 25 additions and 21 deletions
@@ -0,0 +1,14 @@
namespace MidrandBookshop.Components;
public partial class BookCard
{
[Parameter] public long Id { get; set; }
[Parameter] public string Title { get; set; } = string.Empty;
[Parameter] public string Author { get; set; } = string.Empty;
[Parameter] public decimal Price { get; set; }
[Parameter] public string Category { get; set; } = string.Empty;
[Parameter] public bool IsNew { get; set; }
[Parameter] public string BookImageUrl { get; set; } = string.Empty;
[Parameter] public EventCallback OnCardClick { get; set; }
}