Skip to content

Commit 963c2f5

Browse files
committed
small fix
1 parent 794bbc6 commit 963c2f5

File tree

1 file changed

+7
-5
lines changed
  • remix/lessons/04-responses-and-errors/lecture

1 file changed

+7
-5
lines changed

remix/lessons/04-responses-and-errors/lecture/root.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
} from '@remix-run/react'
1313
import { type LinksFunction, json } from '@remix-run/node'
1414
import stylesheet from '~/styles/app.css'
15-
import { MainLayout } from './components/MainLayout'
15+
import { CenterContent, MainLayout } from './components/MainLayout'
1616
import { LessonProvider } from '~/state/LessonContext'
1717
import { Heading } from '~/components/Heading'
1818

@@ -68,10 +68,12 @@ export function ErrorBoundary() {
6868
}
6969

7070
return (
71-
<div className="bg-white p-6 rounded-md space-y-6">
72-
<Heading size={1}>{heading}</Heading>
73-
<p>{message}</p>
74-
</div>
71+
<CenterContent className="pt-6 pb-20">
72+
<div className="bg-white p-6 rounded-md space-y-6">
73+
<Heading size={1}>{heading}</Heading>
74+
<p>{message}</p>
75+
</div>
76+
</CenterContent>
7577
)
7678
}
7779

0 commit comments

Comments
 (0)