fix: Add unique keys to Badge components in HandleTooltipComponent (#4688)
✨ (HandleTooltipComponent/index.tsx): add unique key to each tooltip item to prevent React warning about missing key prop
This commit is contained in:
parent
a76e43fd74
commit
35392078ff
1 changed files with 1 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ export default function HandleTooltipComponent({
|
||||||
{tooltips.map((word, index) => (
|
{tooltips.map((word, index) => (
|
||||||
<Badge
|
<Badge
|
||||||
className="h-6 rounded-md p-1"
|
className="h-6 rounded-md p-1"
|
||||||
|
key={`${index}-${word.toLowerCase()}`}
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: left
|
backgroundColor: left
|
||||||
? `hsl(var(--${accentColorName}))`
|
? `hsl(var(--${accentColorName}))`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue