Commit 6faf0d18 authored by ikeryo1182's avatar ikeryo1182 Committed by Luis Fernando Alvarez D

Fix userAgent type error in README.md (#8048)

parent 1d8ff1d2
...@@ -2182,7 +2182,7 @@ Next.js provides `NextPage` type that can be used for pages in the `pages` direc ...@@ -2182,7 +2182,7 @@ Next.js provides `NextPage` type that can be used for pages in the `pages` direc
import { NextPage } from 'next' import { NextPage } from 'next'
interface Props { interface Props {
userAgent: string userAgent?: string
} }
const Page: NextPage<Props> = ({ userAgent }) => ( const Page: NextPage<Props> = ({ userAgent }) => (
...@@ -2213,7 +2213,7 @@ import React from 'react' ...@@ -2213,7 +2213,7 @@ import React from 'react'
import { NextPageContext } from 'next' import { NextPageContext } from 'next'
interface Props { interface Props {
userAgent: string userAgent?: string
} }
export default class Page extends React.Component<Props> { export default class Page extends React.Component<Props> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment