@@ -6,6 +6,7 @@ import CssBaseline from '@mui/material/CssBaseline'
66import { CacheProvider , EmotionCache } from '@emotion/react'
77import theme from '../theme'
88import createEmotionCache from '../createEmotionCache'
9+ import { Layout } from "../components/Layout" ;
910
1011// Client-side cache, shared for the whole session of the user in the browser.
1112const clientSideEmotionCache = createEmotionCache ( )
@@ -15,17 +16,19 @@ interface MyAppProps extends AppProps {
1516}
1617
1718export default function MyApp ( props : MyAppProps ) {
18- const { Component, emotionCache = clientSideEmotionCache , pageProps} = props
19- return (
20- < CacheProvider value = { emotionCache } >
21- < Head >
22- < title > Demo for MUI react-hook-forms</ title >
23- < meta name = "viewport" content = "initial-scale=1, width=device-width" />
24- </ Head >
25- < ThemeProvider theme = { theme } >
26- < CssBaseline />
27- < Component { ...pageProps } />
28- </ ThemeProvider >
29- </ CacheProvider >
30- )
19+ const { Component, emotionCache = clientSideEmotionCache , pageProps} = props
20+ return (
21+ < CacheProvider value = { emotionCache } >
22+ < Head >
23+ < title > Demo for MUI react-hook-forms</ title >
24+ < meta name = "viewport" content = "initial-scale=1, width=device-width" />
25+ </ Head >
26+ < ThemeProvider theme = { theme } >
27+ < CssBaseline />
28+ < Layout >
29+ < Component { ...pageProps } />
30+ </ Layout >
31+ </ ThemeProvider >
32+ </ CacheProvider >
33+ )
3134}
0 commit comments