Skip to content

Commit

Permalink
refactor: remove export default for modal provider
Browse files Browse the repository at this point in the history
  • Loading branch information
salimi-my committed May 21, 2024
1 parent 3de12ac commit cb63d2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/(admin)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion providers/modal-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit cb63d2a

Please sign in to comment.