mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
1 parent
22f937c954
commit
d8acd6752c
1 file changed
+2
-1
@@ -140,6 +140,7 @@ const CustomTooltip = ({
|
||||
isActiveHoveredChart,
|
||||
}: TooltipProps) => {
|
||||
if (active && payload && payload.length) {
|
||||
const timestamp = payload[0].payload.timestamp
|
||||
const maxValueAttribute = isMaxAttribute(attributes)
|
||||
const maxValueData =
|
||||
maxValueAttribute && payload?.find((p: any) => p.dataKey === maxValueAttribute.attribute)
|
||||
@@ -205,7 +206,7 @@ const CustomTooltip = ({
|
||||
!isActiveHoveredChart && 'opacity-0'
|
||||
)}
|
||||
>
|
||||
<p className="font-medium">{label}</p>
|
||||
<p className="font-medium">{dayjs(timestamp).format(DateTimeFormats.FULL_SECONDS)}</p>
|
||||
<div className="grid gap-0">
|
||||
{payload
|
||||
.reverse()
|
||||
|
||||
Reference in new issue
Block a user