Skip to content

Commit 692ddfb

Browse files
committed
Remove no usage attribute in component
1 parent 8216c23 commit 692ddfb

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/AzureOpenAIProxy.PlaygroundApp/Components/UI/ParameterMultiselectComponent.razor

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
@inherits FluentComponentBase
2-
3-
<div id="@Id">
1+
<div id="@Id">
42
<label id=@($"{Id}-label") for=@($"{Id}-content")
53
class="parameter-child-label"
64
style="display:inline-block;padding-left:5px;">
@@ -41,6 +39,9 @@
4139
[Parameter, EditorRequired]
4240
public string TooltipText { get; set; } = string.Empty;
4341

42+
[Parameter]
43+
public string? Id { get; set; }
44+
4445
public IEnumerable<string> Value => stopSequenceValue;
4546

4647
private IEnumerable<string> stopSequenceValue = new List<string>();

src/AzureOpenAIProxy.PlaygroundApp/Components/UI/ParameterRangeComponent.razor

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
@inherits FluentComponentBase
2-
@typeparam TValue where TValue : System.Numerics.INumber<TValue>
1+
@typeparam TValue where TValue : System.Numerics.INumber<TValue>
32

43
<div id="@Id">
54
<label id=@($"{Id}-label") class="parameter-component-label" for=@($"{Id}-content")>
@@ -32,9 +31,9 @@
3231

3332
@if (!hasNoError)
3433
{
35-
<FluentCard Class="parameter-component-error">
34+
<FluentCard Class="parameter-component-error">
3635
@errorText
37-
</FluentCard>
36+
</FluentCard>
3837
}
3938
</div>
4039

@@ -51,6 +50,9 @@
5150
[Parameter]
5251
public TValue? Value { get; set; }
5352

53+
[Parameter]
54+
public string? Id { get; set; }
55+
5456
[Parameter]
5557
public EventCallback<TValue> ValueChanged { get; set; }
5658

0 commit comments

Comments
 (0)