Selector/Selector.MAUI/Pages/Settings.razor

24 lines
428 B
Plaintext
Raw Normal View History

2023-01-25 21:04:39 +00:00
@page "/settings"
<h1>Settings</h1>
<button @onclick="@SignOut">Sign Out</button>
2023-01-25 21:04:39 +00:00
@code {
[Inject]
private SessionManager sessionManager { get; set; }
[Inject]
private NavigationManager navigationManager { get; set; }
2023-01-25 21:04:39 +00:00
protected async override Task OnInitializedAsync()
{
}
private void SignOut()
{
sessionManager.SignOut();
navigationManager.NavigateTo("/");
}
2023-01-25 21:04:39 +00:00
}