Skip to content

Commit

Permalink
Docs: missing parenthesis on example (#37156)
Browse files Browse the repository at this point in the history
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: JJ Kasper <22380829+ijjk@users.noreply.github.com>
  • Loading branch information
alexandrutasica and ijjk authored May 24, 2022
1 parent 2a89c19 commit e4bf1a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions errors/custom-document-image-import.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ If your image needs to be displayed on every page you can relocate it to your [`

```jsx
//pages/_app.js
import yourImage from "path/to/your/image"
import Image from "next/image"
import yourImage from 'path/to/your/image'
import Image from 'next/image'

function MyApp({ Component, pageProps }) {
return (
<>
<Image src={yourImage} alt="your_image_description" />
<Component {...pageProps} />
</>
)
}

export default MyApp
Expand Down

0 comments on commit e4bf1a5

Please sign in to comment.