mirror of
https://github.com/status-im/js-waku.git
synced 2025-02-23 02:18:25 +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) => {
|
||||
return <MenuItem value={recipient}>{recipient}</MenuItem>;
|
||||
return (
|
||||
<MenuItem key={recipient} value={recipient}>
|
||||
{recipient}
|
||||
</MenuItem>
|
||||
);
|
||||
});
|
||||
|
||||
const keyDownHandler = async (event: KeyboardEvent<HTMLInputElement>) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user