File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed
Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { Container } from '@mui/material'
33/**
44 * this layout places its content inside a container with maxWidth and padding
55 */
6- const ContainerLayout = ( { children } : { children : React . ReactNode } ) => {
6+ const ContainerLayout = ( { children } : LayoutProps < '/[locale]' > ) => {
77 return (
88 < Container
99 maxWidth = 'sm'
Original file line number Diff line number Diff line change @@ -3,11 +3,7 @@ import { Box } from '@mui/material'
33/**
44 * this layout places its content inside a box which uses all available width and height
55 */
6- const FullWidthAndHeightLayout = ( {
7- children,
8- } : {
9- children : React . ReactNode
10- } ) => {
6+ const FullWidthAndHeightLayout = ( { children } : LayoutProps < '/[locale]' > ) => {
117 return (
128 < Box
139 // 48px is the height of the AppBar (with dense prop)
Original file line number Diff line number Diff line change @@ -31,10 +31,7 @@ export const viewport: Viewport = {
3131export default async function LocaleLayout ( {
3232 children,
3333 params,
34- } : Readonly < {
35- children : React . ReactNode
36- params : Promise < { locale : string } >
37- } > ) {
34+ } : LayoutProps < '/[locale]' > ) {
3835 // Ensure that the incoming `locale` is valid
3936 const { locale } = await params
4037 if ( ! hasLocale ( routing . locales , locale ) ) {
You can’t perform that action at this time.
0 commit comments