diff --git a/components/dashboard/PerformanceStats.tsx b/components/dashboard/PerformanceStats.tsx index f48d816..28aeb33 100644 --- a/components/dashboard/PerformanceStats.tsx +++ b/components/dashboard/PerformanceStats.tsx @@ -1,6 +1,7 @@ 'use client' import { useState, useEffect } from 'react' +import { motion } from 'framer-motion' import { ChevronDownIcon } from '@radix-ui/react-icons' import { PerformanceStats as Stats, PerformanceByPageStat, getPerformanceByPage } from '@/lib/api/stats' import Select from '@/components/ui/Select' @@ -145,8 +146,16 @@ export default function PerformanceStats({ stats, performanceByPage, siteId, sta /> )} - {worstPagesOpen && ( - loadingTable ? ( + + {loadingTable ? (
Loading…
) : rows.length === 0 ? (
@@ -185,8 +194,8 @@ export default function PerformanceStats({ stats, performanceByPage, siteId, sta
- ) - )} + )} +
)