Skip to content

Commit

Permalink
Icon lookup converted to a dictionary for sake of performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucasharskamp committed Dec 6, 2024
1 parent 36331c8 commit dbbdb37
Show file tree
Hide file tree
Showing 2 changed files with 2,073 additions and 2,078 deletions.
2 changes: 1 addition & 1 deletion blazorbootstrap/Components/Icon/Icon.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public partial class Icon : BlazorBootstrapComponentBase
/// <inheritdoc />
protected override string? ClassNames =>
BuildClassNames(Class,
(BootstrapIconUtility.Icon(), string.IsNullOrWhiteSpace(CustomIconName)),
(BootstrapIconUtility.IconPrefix, string.IsNullOrWhiteSpace(CustomIconName)),
(BootstrapIconUtility.Icon(Name), string.IsNullOrWhiteSpace(CustomIconName)),
(CustomIconName!, !string.IsNullOrWhiteSpace(CustomIconName)),
(BootstrapIconUtility.IconSize(Size)!, Size != IconSize.None),
Expand Down
Loading

0 comments on commit dbbdb37

Please sign in to comment.