Updated CI for Blazor WebAssembly. Added styles for product cards.
This commit is contained in:
24
JSMR.UI.Blazor/Components/JProductCollection.razor
Normal file
24
JSMR.UI.Blazor/Components/JProductCollection.razor
Normal file
@@ -0,0 +1,24 @@
|
||||
@using JSMR.Application.VoiceWorks.Queries.Search
|
||||
|
||||
@if (Products is null)
|
||||
{
|
||||
<p>Loading…</p>
|
||||
}
|
||||
else if (Products.Length == 0)
|
||||
{
|
||||
<p>No results.</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="j-product-items-container">
|
||||
@foreach (var product in Products)
|
||||
{
|
||||
<JProduct Product="@product"></JProduct>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public VoiceWorkSearchResult[]? Products { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user