1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-11-23 19:59:26 +01:00

Fix jsx key issue

This commit is contained in:
nimbleghost 2023-05-24 17:49:16 +02:00
parent 25d6725d8f
commit 4a0a22566a

View file

@ -477,10 +477,8 @@ const PublishDialog = (props) => {
"aria-label": t("publish_dialog_call_label"), "aria-label": t("publish_dialog_call_label"),
}} }}
> >
{account?.phone_numbers?.map((phoneNumber, i) => ( {account?.phone_numbers?.map((phoneNumber) => (
// TODO(eslint): Possibly just use the phone number as a key? <MenuItem key={phoneNumber} value={phoneNumber} aria-label={phoneNumber}>
// eslint-disable-next-line react/no-array-index-key
<MenuItem key={`phoneNumberMenuItem${i}`} value={phoneNumber} aria-label={phoneNumber}>
{t("publish_dialog_call_item", { number: phoneNumber })} {t("publish_dialog_call_item", { number: phoneNumber })}
</MenuItem> </MenuItem>
))} ))}