Skip to content

Commit

Permalink
display asset icons in AssetDropdownSelector (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharqiewicz committed Jul 22, 2024
1 parent 2c4dca4 commit 830ac3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Selector/DropdownSelector.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Dropdown } from 'react-daisyui';
import { getIcon } from '../../shared/AssetIcons';

interface Props<T> {
items: T[];
Expand All @@ -25,6 +26,7 @@ function DropdownSelector<T extends { id: unknown; displayName: string }>(props:
onChange(item);
}}
>
<img src={getIcon(item.displayName)} className="w-6" />
{item.displayName}
</Dropdown.Item>
))}
Expand Down

0 comments on commit 830ac3b

Please sign in to comment.