mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-07 00:03:07 +00:00
Add key to list items
This commit is contained in:
parent
c6f73199cb
commit
f05e3a6bb3
@ -46,7 +46,11 @@ export function SendMessage(props: Props) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const items = Array.from(props.recipients.keys()).map((recipient) => {
|
const items = Array.from(props.recipients.keys()).map((recipient) => {
|
||||||
return <MenuItem value={recipient}>{recipient}</MenuItem>;
|
return (
|
||||||
|
<MenuItem key={recipient} value={recipient}>
|
||||||
|
{recipient}
|
||||||
|
</MenuItem>
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
const keyDownHandler = async (event: KeyboardEvent<HTMLInputElement>) => {
|
const keyDownHandler = async (event: KeyboardEvent<HTMLInputElement>) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user