Skip to content

Commit

Permalink
Fix ambiguity error
Browse files Browse the repository at this point in the history
  • Loading branch information
vnbaaij committed Oct 11, 2022
1 parent 7d38729 commit e0f02db
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions examples/FluentUI.Demo.Shared/Shared/MainLayout.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public partial class MainLayout : IAsyncDisposable
private AccentBaseColor AccentBaseColor { get; set; } = default!;

[Inject]
private Direction Direction { get; set; } = default!;
private Microsoft.Fast.Components.FluentUI.DesignTokens.Direction Direction { get; set; } = default!;


ElementReference container;
Expand All @@ -34,7 +34,7 @@ public partial class MainLayout : IAsyncDisposable

ErrorBoundary? errorBoundary;

LocalizationDirection dir;
LocalizationDirection? dir;
float baseLayerLuminance = 0.98f;

protected override void OnInitialized()
Expand Down Expand Up @@ -77,24 +77,6 @@ private void HandleChecked()
menuchecked = !menuchecked;
}

private async void HandleColorChange(ChangeEventArgs args)
{
string? value = args.Value?.ToString();
if (!string.IsNullOrEmpty(value))
{
if (value != "default")
{
selectValue = (string)args.Value;
await AccentBaseColor.SetValueFor(container, args.Value.ToString()!.ToSwatch());
}
else
{
selectValue = "default";
await AccentBaseColor.DeleteValueFor(container);
}
}
}

private async void LocationChanged(object? sender, LocationChangedEventArgs e)
{
if (e.IsNavigationIntercepted)
Expand Down

0 comments on commit e0f02db

Please sign in to comment.