File tree Expand file tree Collapse file tree 4 files changed +34
-36
lines changed
Expand file tree Collapse file tree 4 files changed +34
-36
lines changed Original file line number Diff line number Diff line change 1+ "use client" ;
12import BottomBar from "~/components/BottomBar" ;
23import Header from "~/components/Header" ;
34import { NavigateByAuthState } from "~/components/common/NavigateByAuthState" ;
5+ import { ModalProvider } from "~/components/common/modal/ModalProvider" ;
46
5- export default function Layout ( {
6- children,
7- } : {
8- children : React . ReactNode ;
9- } ) {
7+ export default function Layout ( { children } : { children : React . ReactNode } ) {
108 return (
119 < >
12- < Header title = "チャット" />
13- < NavigateByAuthState type = "toLoginForUnauthenticated" >
14- < div className = "h-full overflow-y-auto pt-12 pb-12" > { children } </ div >
15- </ NavigateByAuthState >
16- < BottomBar activeTab = "3_chat" />
10+ < ModalProvider >
11+ < Header title = "チャット" />
12+ < NavigateByAuthState type = "toLoginForUnauthenticated" >
13+ < div className = "h-full overflow-y-auto pt-12 pb-12" > { children } </ div >
14+ </ NavigateByAuthState >
15+ < BottomBar activeTab = "3_chat" />
16+ </ ModalProvider >
1717 </ >
1818 ) ;
1919}
Original file line number Diff line number Diff line change 1+ "use client" ;
12import BottomBar from "~/components/BottomBar" ;
23import Header from "~/components/Header" ;
34import { NavigateByAuthState } from "~/components/common/NavigateByAuthState" ;
5+ import { ModalProvider } from "~/components/common/modal/ModalProvider" ;
46
5- export default function Layout ( {
6- children,
7- } : {
8- children : React . ReactNode ;
9- } ) {
7+ export default function Layout ( { children } : { children : React . ReactNode } ) {
108 return (
119 < >
12- < Header title = "フレンド" />
13- < NavigateByAuthState type = "toLoginForUnauthenticated" >
14- < div className = "h-full overflow-y-auto pt-12 pb-12" > { children } </ div >
15- </ NavigateByAuthState >
16- < BottomBar activeTab = "1_friends" />
10+ < ModalProvider >
11+ < Header title = "フレンド" />
12+ < NavigateByAuthState type = "toLoginForUnauthenticated" >
13+ < div className = "h-full overflow-y-auto pt-12 pb-12" > { children } </ div >
14+ </ NavigateByAuthState >
15+ < BottomBar activeTab = "1_friends" />
16+ </ ModalProvider >
1717 </ >
1818 ) ;
1919}
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ import "@fontsource/roboto/500.css";
1010import "@fontsource/roboto/700.css" ;
1111import BanLandscape from "~/components/BanLandscape" ;
1212import { AlertProvider } from "~/components/common/alert/AlertProvider" ;
13- import { ModalProvider } from "~/components/common/modal/ModalProvider" ;
14- import AuthProvider from "~/firebase/auth/AuthProvider" ;
1513
1614const theme = createTheme ( {
1715 palette : {
@@ -47,10 +45,10 @@ export default function RootLayout({
4745 < React . StrictMode >
4846 < CssBaseline />
4947 < AlertProvider >
50- < ModalProvider >
51- < BanLandscape />
52- { children }
53- </ ModalProvider >
48+ { /* <ModalProvider> */ }
49+ < BanLandscape />
50+ { children }
51+ { /* </ModalProvider> */ }
5452 </ AlertProvider >
5553 </ React . StrictMode >
5654 </ SnackbarProvider >
Original file line number Diff line number Diff line change 1+ "use client" ;
12import BottomBar from "~/components/BottomBar" ;
23import Header from "~/components/Header" ;
34import { NavigateByAuthState } from "~/components/common/NavigateByAuthState" ;
5+ import { ModalProvider } from "~/components/common/modal/ModalProvider" ;
46
5- export default function Layout ( {
6- children,
7- } : {
8- children : React . ReactNode ;
9- } ) {
7+ export default function Layout ( { children } : { children : React . ReactNode } ) {
108 return (
119 < >
12- < Header title = "検索" />
13- < NavigateByAuthState type = "toLoginForUnauthenticated" >
14- < div className = "h-full overflow-y-auto pt-12 pb-12" > { children } </ div >
15- </ NavigateByAuthState >
16- < BottomBar activeTab = "2_search" />
10+ < ModalProvider >
11+ < Header title = "検索" />
12+ < NavigateByAuthState type = "toLoginForUnauthenticated" >
13+ < div className = "h-full overflow-y-auto pt-12 pb-12" > { children } </ div >
14+ </ NavigateByAuthState >
15+ < BottomBar activeTab = "2_search" />
16+ </ ModalProvider >
1717 </ >
1818 ) ;
1919}
You can’t perform that action at this time.
0 commit comments