Skip to content

Commit

Permalink
refactor: MsalProviderをapp/_componentsに移動
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed May 22, 2024
1 parent 5b47dfe commit e941d7d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/(authed)/(standard)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 1 addition & 1 deletion src/app/(authed)/admin/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/app/(unauthed)/layout.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/app/_components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit e941d7d

Please sign in to comment.