optimization
This commit is contained in:
@@ -47,7 +47,8 @@ import { DateRange } from "react-day-picker";
|
||||
import { addDays, startOfDay, endOfDay } from "date-fns";
|
||||
import type { DateRange as ProfitDateRange } from "@/lib/services/profit-analytics-service";
|
||||
|
||||
// Lazy load chart components
|
||||
// Lazy load chart components - already handled individually below
|
||||
|
||||
const RevenueChart = dynamic(() => import("./RevenueChart"), {
|
||||
loading: () => <ChartSkeleton />,
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { useState, useEffect } from "react";
|
||||
import { useState, useEffect, memo, useMemo, useCallback } from "react";
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
|
||||
Reference in New Issue
Block a user