Skip to content

Commit

Permalink
Fix typos in Dashboard project (#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
krschau authored and cinnamon-msft committed Jul 18, 2023
1 parent 242adb2 commit 87f6d7b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tools/Dashboard/DevHome.Dashboard/Helpers/WidgetHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ internal class WidgetHelpers
private const double WidgetPxHeightMedium = 304;
private const double WidgetPxHeightLarge = 462;

public static WidgetSize GetLargetstCapabilitySize(WidgetCapability[] capabilities)
public static WidgetSize GetLargestCapabilitySize(WidgetCapability[] capabilities)
{
// Guaranteed to have at least one capability
var largest = capabilities[0].Size;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ partial void OnWidgetFrameworkElementChanged(FrameworkElement value)
public WidgetViewModel(
Widget widget,
WidgetSize widgetSize,
WidgetDefinition widgetDefintion,
WidgetDefinition widgetDefinition,
AdaptiveCardRenderer renderer,
Microsoft.UI.Dispatching.DispatcherQueue dispatcher)
{
Expand All @@ -96,7 +96,7 @@ public WidgetViewModel(

Widget = widget;
WidgetSize = widgetSize;
WidgetDefinition = widgetDefintion;
WidgetDefinition = widgetDefinition;
}

public void Render()
Expand Down Expand Up @@ -131,7 +131,7 @@ private async void RenderWidgetFrameworkElement()
Log.Logger()?.ReportDebug("WidgetViewModel", $"cardData = {cardData}");

// If we're in the Add or Edit dialog, check the cardData to see if the card is in a configuration state
// or if it is pinnable yet. If still configuring, the Pin button will be disabled.
// or if it is able to be pinned yet. If still configuring, the Pin button will be disabled.
if (IsInAddMode || IsInEditMode)
{
GetConfiguring(cardData);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private async void AddWidgetNavigationView_SelectionChanged(
// If the user has selected a widget, show configuration UI. If they selected a provider, leave space blank.
if (selectedTag as WidgetDefinition is WidgetDefinition selectedWidgetDefinition)
{
var size = WidgetHelpers.GetLargetstCapabilitySize(selectedWidgetDefinition.GetWidgetCapabilities());
var size = WidgetHelpers.GetLargestCapabilitySize(selectedWidgetDefinition.GetWidgetCapabilities());

// Create the widget for configuration. We will need to delete it if the user closes the dialog
// without pinning, or selects a different widget.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public CustomizeWidgetDialog(WidgetHost host, WidgetCatalog catalog, AdaptiveCar

private async void InitializeWidgetCustomization(object sender, RoutedEventArgs e)
{
var size = WidgetHelpers.GetLargetstCapabilitySize(_widgetDefinition.GetWidgetCapabilities());
var size = WidgetHelpers.GetLargestCapabilitySize(_widgetDefinition.GetWidgetCapabilities());

// Create the widget for configuration. We will need to delete it if the dialog is closed without updating.
var widget = await _widgetHost.CreateWidgetAsync(_widgetDefinition.Id, size);
Expand Down

0 comments on commit 87f6d7b

Please sign in to comment.