diff --git a/components/shared/AppSidebar/InsightsPanel.tsx b/components/shared/AppSidebar/InsightsPanel.tsx index e6c4990d49..bb9f8fc8b5 100644 --- a/components/shared/AppSidebar/InsightsPanel.tsx +++ b/components/shared/AppSidebar/InsightsPanel.tsx @@ -3,6 +3,7 @@ import { FiChevronDown, FiChevronUp } from "react-icons/fi"; import { Root, Thumb } from "@radix-ui/react-switch"; import { useState } from "react"; import ClientOnly from "components/atoms/ClientOnly/client-only"; +import SkeletonWrapper from "components/atoms/SkeletonLoader/skeleton-wrapper"; import SidebarMenuItem from "./sidebar-menu-item"; interface InsightsPanelProps { @@ -13,6 +14,20 @@ interface InsightsPanelProps { isLoading: boolean; } +const Loading = () => { + return ( + + ); +}; + export const InsightsPanel = ({ title, username, insights, type, isLoading }: InsightsPanelProps) => { const [open, setOpen] = useState(true); return ( @@ -41,7 +56,9 @@ export const InsightsPanel = ({ title, username, insights, type, isLoading }: In - {isLoading ? null : ( + {isLoading ? ( + + ) : (