Fix image-component example types (#40352)

This commit is contained in:
Steven 2022-09-08 11:09:46 -04:00 committed by GitHub
parent 2b9268a911
commit 66834d5c15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ import ViewSource from '../components/view-source'
import vercel from '../public/vercel.png' import vercel from '../public/vercel.png'
import type { PropsWithChildren } from 'react' import type { PropsWithChildren } from 'react'
const Code = (props: PropsWithChildren) => ( const Code = (props: PropsWithChildren<{}>) => (
<code className={styles.inlineCode} {...props} /> <code className={styles.inlineCode} {...props} />
) )