Extract date rendering into per-feature Date components
This commit is contained in:
1 parent
d95bf0dcbe
commit
455b603299
16 files changed
+168
-71
No files matched your search
@@ -0,0 +1,18 @@
|
||||
using Elternbeirat.Contracts;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace Elternbeirat.Web.Features.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Renders an event's date range as a <c><time></c> element, in both a
|
||||
/// machine-readable and a visitor-facing form.
|
||||
/// </summary>
|
||||
public partial class EventDate
|
||||
{
|
||||
/// <summary>
|
||||
/// The event whose date range to render.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
[EditorRequired]
|
||||
public Event Value { get; set; } = null!;
|
||||
}
|
||||
Reference in new issue
Block a user