You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
591 B
24 lines
591 B
|
|
<div class="tab">
|
|
<button class="@(GetTabClass(0))" onclick="@(() => SwitchTabs(0))">Email or User ID</button>
|
|
<button class="@(GetTabClass(1))" onclick="@(() => SwitchTabs(1))">Phone</button>
|
|
</div>
|
|
|
|
@if (activeTab == 0)
|
|
{
|
|
<UsernameTab />
|
|
}
|
|
else if (activeTab == 1)
|
|
{
|
|
<PhoneAuthTab />
|
|
}
|
|
@code {
|
|
private int activeTab = 0;
|
|
|
|
private string GetTabClass(int tabId) => tabId == activeTab ? "tablinks active" : "tablinks";
|
|
|
|
private void SwitchTabs(int tabId)
|
|
{
|
|
activeTab = tabId;
|
|
}
|
|
}
|
|
|