mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 13:47:21 +00:00
Turned getter-like extension methods into extension properties (#1157)
This commit is contained in:
1 parent
0375318b1b
commit
f649febf88
286 files changed
+1379
-1109
No files matched your search
+2
-2
@@ -6,7 +6,7 @@ public static class AssistantComponentTypeExtensions
|
||||
|
||||
extension(AssistantComponentType type)
|
||||
{
|
||||
public string GetDisplayName() => type switch
|
||||
public string DisplayName => type switch
|
||||
{
|
||||
AssistantComponentType.FORM => TB("Root"),
|
||||
AssistantComponentType.TEXT_AREA => TB("Text Area"),
|
||||
@@ -36,7 +36,7 @@ public static class AssistantComponentTypeExtensions
|
||||
_ => TB("Unknown Element")
|
||||
};
|
||||
|
||||
public string GetIcon() => type switch
|
||||
public string Icon => type switch
|
||||
{
|
||||
AssistantComponentType.BUTTON => MudBlazor.Icons.Material.Filled.AdsClick,
|
||||
AssistantComponentType.BUTTON_GROUP => MudBlazor.Icons.Material.Filled.LinearScale,
|
||||
|
||||
Reference in new issue
Block a user