@@ -12,49 +12,49 @@
Elevation="0">
}
-
+
-
+
-
@TrackModel?.TrackName
-
-
@TrackModel?.Artist
-
+
@if (!string.IsNullOrEmpty(TrackModel?.Album))
{
-
@TrackModel.Album
}
-
+
@if (!string.IsNullOrEmpty(TrackModel?.Genre))
{
-
@TrackModel.Genre
}
-
+
@if (TrackModel?.ReleaseDate.HasValue == true)
{
-
@TrackModel.ReleaseDate.Value.Year
@@ -63,13 +63,13 @@
{
}
-
-
-
+
-
-
\ No newline at end of file
+
+
diff --git a/DeepDrftWeb.Client/Controls/TrackCard.razor.cs b/DeepDrftShared.Client/Components/TrackCard.razor.cs
similarity index 82%
rename from DeepDrftWeb.Client/Controls/TrackCard.razor.cs
rename to DeepDrftShared.Client/Components/TrackCard.razor.cs
index 592bd45..ace2198 100644
--- a/DeepDrftWeb.Client/Controls/TrackCard.razor.cs
+++ b/DeepDrftShared.Client/Components/TrackCard.razor.cs
@@ -1,16 +1,15 @@
-using Microsoft.AspNetCore.Components;
+using Microsoft.AspNetCore.Components;
using DeepDrftModels.Entities;
-using DeepDrftWeb.Client.Clients;
using MudBlazor;
-namespace DeepDrftWeb.Client.Controls;
+namespace DeepDrftShared.Client.Components;
public partial class TrackCard : ComponentBase
{
[Parameter] public required TrackEntity TrackModel { get; set; }
[Parameter] public EventCallback