From 78269556acd3e86968b27c2828ac6862e938cef5 Mon Sep 17 00:00:00 2001 From: Neeraj Dalal Date: Fri, 18 Feb 2022 10:47:42 +0530 Subject: [PATCH 1/2] Updated head, img -> Image, type { NextPage } as default next-app Everything updated in accordance to latest yarn create next-app --- examples/with-tailwindcss/pages/index.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/with-tailwindcss/pages/index.tsx b/examples/with-tailwindcss/pages/index.tsx index 6efe2057f183..a56dfad8eeeb 100644 --- a/examples/with-tailwindcss/pages/index.tsx +++ b/examples/with-tailwindcss/pages/index.tsx @@ -1,10 +1,13 @@ +import type { NextPage } from 'next' import Head from 'next/head' +import Image from 'next/image' -export default function Home() { +const Home: NextPage = () => { return (
Create Next App + @@ -68,15 +71,17 @@ export default function Home() {
) } + +export default Home From 7a89ac6c202997832541c2b5eaadf71eba1b34f2 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Fri, 18 Feb 2022 14:18:16 -0600 Subject: [PATCH 2/2] Apply suggestions from code review --- examples/with-tailwindcss/pages/index.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/with-tailwindcss/pages/index.tsx b/examples/with-tailwindcss/pages/index.tsx index a56dfad8eeeb..94e17a5facfb 100644 --- a/examples/with-tailwindcss/pages/index.tsx +++ b/examples/with-tailwindcss/pages/index.tsx @@ -7,7 +7,6 @@ const Home: NextPage = () => {
Create Next App -