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:
Cristhian Zanforlin Lousa 2024-11-19 11:00:20 -03:00 committed by GitHub
commit 35392078ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,6 +48,7 @@ export default function HandleTooltipComponent({
{tooltips.map((word, index) => (
<Badge
className="h-6 rounded-md p-1"
key={`${index}-${word.toLowerCase()}`}
style={{
backgroundColor: left
? `hsl(var(--${accentColorName}))`