Skip to content

Commit d824e35

Browse files
committed
convert Page Component to tsx
1 parent 7b26075 commit d824e35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Page.jsx src/components/Page.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Head from 'next/head'
22

3-
export default function Page({ title, children }) {
3+
const Page: React.FC<{ title: string }> = ({ title, children }) => {
44
return (
55
<>
66
<Head>
@@ -10,3 +10,5 @@ export default function Page({ title, children }) {
1010
</>
1111
)
1212
}
13+
14+
export default Page

0 commit comments

Comments
 (0)