diff --git a/client/src/pages/Home.tsx b/client/src/pages/Home.tsx index 8d4f8447..eac6f23d 100644 --- a/client/src/pages/Home.tsx +++ b/client/src/pages/Home.tsx @@ -1,23 +1,15 @@ -import { lazy, Suspense } from "react"; - -import ChartSkeleton from "@/components/chart/ChartSkeleton.tsx"; +import ChartTab from "@/components/chart/ChartTab.tsx"; import Layout from "@/components/layout/Layout"; import MainContent from "@/components/sections/MainContent"; import { useTapStore } from "@/store/useTapStore"; -const ChartTab = lazy(() => import("@/components/chart/ChartTab")); - export default function Home() { const { tap } = useTapStore(); const renderFunction = () => { if (tap === "main") return <MainContent />; - return ( - <Suspense fallback={<ChartSkeleton />}> - <ChartTab />) - </Suspense> - ); + return <ChartTab />; }; return <Layout>{renderFunction()}</Layout>;