Unverified Commit e4bf1a51 authored by Alexandru Tasica's avatar Alexandru Tasica Committed by GitHub

Docs: missing parenthesis on example (#37156)

Missing close parenthesis on docs example from page custom-document-image-import.md

## Bug

- [x] Related issues linked using `fixes #37155`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
Co-authored-by: 's avatarJJ Kasper <22380829+ijjk@users.noreply.github.com>
parent 2a89c192
...@@ -14,8 +14,8 @@ If your image needs to be displayed on every page you can relocate it to your [` ...@@ -14,8 +14,8 @@ If your image needs to be displayed on every page you can relocate it to your [`
```jsx ```jsx
//pages/_app.js //pages/_app.js
import yourImage from "path/to/your/image" import yourImage from 'path/to/your/image'
import Image from "next/image" import Image from 'next/image'
function MyApp({ Component, pageProps }) { function MyApp({ Component, pageProps }) {
return ( return (
...@@ -23,6 +23,7 @@ function MyApp({ Component, pageProps }) { ...@@ -23,6 +23,7 @@ function MyApp({ Component, pageProps }) {
<Image src={yourImage} alt="your_image_description" /> <Image src={yourImage} alt="your_image_description" />
<Component {...pageProps} /> <Component {...pageProps} />
</> </>
)
} }
export default MyApp export default MyApp
......
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