mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-29 23:41:16 -07:00
Chore: full react hooks eslint compliance (#7040)
This commit is contained in:
@@ -3,7 +3,7 @@ export default function Tooltip({ active, payload, formatter }) {
|
||||
return (
|
||||
<div className="bg-theme-800/80 rounded-md text-theme-200 px-2 py-0">
|
||||
{payload.map((pld, id) => (
|
||||
<div key={Math.random()} className="first-of-type:pt-0 pt-0.5">
|
||||
<div key={`${pld.dataKey ?? pld.name ?? "series"}-${id}`} className="first-of-type:pt-0 pt-0.5">
|
||||
<div>
|
||||
{formatter(pld.value)} {payload[id].name}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user