Skip to content

Commit

Permalink
Added avatar for host selection
Browse files Browse the repository at this point in the history
  • Loading branch information
dkildar committed Dec 7, 2024
1 parent 9888f28 commit e13331a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/app/waves/_components/waves-host-selection.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { useMemo } from "react";
import { AVAILABLE_THREAD_HOSTS } from "@/features/waves";
import { WavesNavigationLayout } from "@/app/waves/_components/waves-navigation-layout";
import { Dropdown, DropdownItem, DropdownMenu, DropdownToggle } from "@ui/dropdown";
import { Dropdown, DropdownItemWithIcon, DropdownMenu, DropdownToggle } from "@ui/dropdown";
import { Button } from "@ui/button";
import { UilApps } from "@tooni/iconscout-unicons-react";
import { UserAvatar } from "@/features/shared";

interface Props {
host: string;
Expand All @@ -24,9 +25,14 @@ export function WavesHostSelection({ host, setHost }: Props) {
</DropdownToggle>
<DropdownMenu align="right">
{availableHosts.map((item, i) => (
<DropdownItem name={item} onClick={() => setHost(item)} title={item} key={item}>
{item}
</DropdownItem>
<DropdownItemWithIcon
icon={<UserAvatar username={item} size="small" />}
name={item}
onClick={() => setHost(item)}
title={item}
key={item}
label={item}
/>
))}
</DropdownMenu>
</Dropdown>
Expand Down

0 comments on commit e13331a

Please sign in to comment.