refactor: streamline data fetching in various hooks and components
Deploy to VPS / deploy (push) Successful in 2m39s
Deploy to VPS / deploy (push) Successful in 2m39s
This commit is contained in:
1 parent
1021301656
commit
323fa207af
8 files changed
+26
-15
No files matched your search
@@ -121,8 +121,6 @@ export default function DashboardPage() {
|
||||
function StatsSection() {
|
||||
const { stats, loading, error, refetch } = useStats();
|
||||
|
||||
if (error) return <ErrorState message={error} onRetry={refetch} />;
|
||||
|
||||
if (loading || !stats) {
|
||||
return (
|
||||
<div className="space-y-5 animate-fade-in-up">
|
||||
|
||||
Reference in new issue
Block a user