diff --git a/src/app/(authed)/(standard)/page.tsx b/src/app/(authed)/(standard)/page.tsx index 75ec7fb3..97eec01c 100644 --- a/src/app/(authed)/(standard)/page.tsx +++ b/src/app/(authed)/(standard)/page.tsx @@ -4,7 +4,7 @@ import { AuthenticatedTemplate, UnauthenticatedTemplate, } from '@azure/msal-react'; -import { MsalProvider } from '@/features/user/components/MsalProvider'; +import { MsalProvider } from '@/app/_components/MsalProvider'; import MainMenu from './_components/MainMenu'; import { NeedToSignin } from './_components/NeedToSignin'; diff --git a/src/app/(authed)/admin/layout.tsx b/src/app/(authed)/admin/layout.tsx index 38f13324..02175889 100644 --- a/src/app/(authed)/admin/layout.tsx +++ b/src/app/(authed)/admin/layout.tsx @@ -5,7 +5,7 @@ import { ThemeProvider } from '@emotion/react'; import { CssBaseline } from '@mui/material'; import { AppRouterCacheProvider } from '@mui/material-nextjs/v13-appRouter'; import { Inter } from 'next/font/google'; -import { MsalProvider } from '@/features/user/components/MsalProvider'; +import { MsalProvider } from '@/app/_components/MsalProvider'; import AdminNavigationBar from './_components/AdminNavigationBar'; import DashboardMenu from './_components/DashboardMenu'; import adminDashboardTheme from './theme/adminDashboardTheme'; diff --git a/src/app/(unauthed)/layout.tsx b/src/app/(unauthed)/layout.tsx index e151444e..304ae9f3 100644 --- a/src/app/(unauthed)/layout.tsx +++ b/src/app/(unauthed)/layout.tsx @@ -1,7 +1,7 @@ import '../globals.css'; import { Inter } from 'next/font/google'; import NavBar from '@/app/_components/NavBar'; -import { MsalProvider } from '@/features/user/components/MsalProvider'; +import { MsalProvider } from '../_components/MsalProvider'; import styles from '../page.module.css'; import type { Metadata } from 'next'; import type { ReactNode } from 'react'; diff --git a/src/features/user/components/MsalProvider.tsx b/src/app/_components/MsalProvider.tsx similarity index 86% rename from src/features/user/components/MsalProvider.tsx rename to src/app/_components/MsalProvider.tsx index df45d911..2cbb16fb 100644 --- a/src/features/user/components/MsalProvider.tsx +++ b/src/app/_components/MsalProvider.tsx @@ -2,7 +2,7 @@ import { PublicClientApplication } from '@azure/msal-browser'; import { MsalProvider as MsalLibProvider } from '@azure/msal-react'; -import { msalConfig } from '../const/authConfig'; +import { msalConfig } from '../../features/user/const/authConfig'; import type { ReactNode } from 'react'; const msalInstance = new PublicClientApplication(msalConfig); diff --git a/src/app/_components/NavBar.tsx b/src/app/_components/NavBar.tsx index d15b788d..a3f542e5 100644 --- a/src/app/_components/NavBar.tsx +++ b/src/app/_components/NavBar.tsx @@ -13,9 +13,9 @@ import { Typography, Link, } from '@mui/material'; +import { MsalProvider } from './MsalProvider'; import { SigninButton } from './SigninButton'; import { SignoutButton } from './SignoutButton'; -import { MsalProvider } from '@/features/user/components/MsalProvider'; const NavBar = () => { return (