1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2024-10-17 03:42:50 +02:00
Minecraft-Phantom-Panel/Web/Phantom.Web/Pages/Index.razor
2024-04-07 21:21:05 +02:00

19 lines
309 B
Plaintext

@page "/"
@inherits Phantom.Web.Components.PhantomComponent
<h1>Home</h1>
@if (username != null) {
<p>Welcome back, @username!</p>
}
@code {
private string? username = null;
protected override async Task OnInitializedAsync() {
username = (await GetAuthenticatedUser())?.Info.Name;
}
}