diff --git a/app/(admin)/layout.tsx b/app/(admin)/layout.tsx index 5d6e594..510d7c3 100644 --- a/app/(admin)/layout.tsx +++ b/app/(admin)/layout.tsx @@ -3,9 +3,9 @@ import { cn } from '@/lib/utils'; import { useStore } from '@/hooks/use-store'; import { EdgeStoreProvider } from '@/lib/edgestore'; -import { Sidebar } from '@/components/admin-panel/sidebar'; -import ModalProvider from '@/providers/modal-provider'; import { Footer } from '@/components/admin-panel/footer'; +import { Sidebar } from '@/components/admin-panel/sidebar'; +import { ModalProvider } from '@/providers/modal-provider'; import { useSidebarToggle } from '@/hooks/use-sidebar-toggle'; export default function AdminLayout({ diff --git a/providers/modal-provider.tsx b/providers/modal-provider.tsx index e5adb66..2b14e7d 100644 --- a/providers/modal-provider.tsx +++ b/providers/modal-provider.tsx @@ -4,7 +4,7 @@ import { useEffect, useState } from 'react'; import QualificationModal from '@/components/modals/qualification-modal'; -export default function ModalProvider() { +export function ModalProvider() { const [isMounted, setIsMounted] = useState(false); useEffect(() => {