Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: remove unnecessary throw, added warning on docs
  • Loading branch information
Denny09310 committed Sep 15, 2025
commit 1e8aec924a1e6301238761264546b792cebee7ed
6 changes: 6 additions & 0 deletions docs/LumexUI.Docs.Client/Pages/Components/User/User.razor
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
<LinkDescription />
</DocsSection>

<LumexAlert Radius="@Radius.Large" Class="my-6">
<DescriptionContent>
When both <code>Description</code> and <code>DescriptionContent</code> are provided, <code>DescriptionContent</code> takes precedence.
</DescriptionContent>
</LumexAlert>

</DocsSection>

<DocsSlotsSection Slots="@_slots">
Expand Down
5 changes: 0 additions & 5 deletions src/LumexUI/Components/User/LumexUser.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ public partial class LumexUser : LumexComponentBase, ISlotComponent<UserSlots>
/// <inheritdoc/>
protected override void OnParametersSet()
{
if( ( Description is not null ) && ( DescriptionContent is not null ) )
{
throw new ArgumentException( $"Only one of '{nameof( Description )}' or '{nameof( DescriptionContent )}' parameters can be set." );
}

var user = Styles.User.Style( TwMerge );
_slots = user();
}
Expand Down