Skip to content

Commit

Permalink
fix: fix issues by rabbit
Browse files Browse the repository at this point in the history
  • Loading branch information
dundun003 committed Jan 13, 2025
1 parent fc30329 commit c5e56a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/list/ListRenderitem/ListItemWithPoint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ interface ListItemWithPointProps<T> {
item: T;
}

export function ListItemWithPoint<T>({ item }: ListItemWithPointProps<T>) {
export function ListItemWithPoint<T extends { toString(): string }>({ item }: ListItemWithPointProps<T>) {
return (
<div className="flex items-center py-[2.5px]">
<span className="w-[10px] h-[10px] rounded-full bg-[#2d3436] mr-[10px] flex"></span>
<span>{String(item)}</span>
<span>{item.toString()}</span>
</div>
);
}

0 comments on commit c5e56a2

Please sign in to comment.