Unverified Commit 527afe1c authored by Hannes Bornö's avatar Hannes Bornö Committed by GitHub

Change @next/font to next/font in examples (#46836)

Migrate examples using `@next/font` to `next/font`.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/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`
- [ ] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
parent a0c4354b
import Image from 'next/image' import Image from 'next/image'
import { Inter } from '@next/font/google' import { Inter } from 'next/font/google'
import styles from './page.module.css' import styles from './page.module.css'
import Content from './message.mdx' import Content from './message.mdx'
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
"start": "next start" "start": "next start"
}, },
"dependencies": { "dependencies": {
"@next/font": "latest",
"@next/mdx": "latest", "@next/mdx": "latest",
"@types/mdx": "2.0.3", "@types/mdx": "2.0.3",
"@types/node": "18.11.18", "@types/node": "18.11.18",
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
"start": "next start" "start": "next start"
}, },
"dependencies": { "dependencies": {
"@next/font": "latest",
"commerce-sdk": "^2.8.0", "commerce-sdk": "^2.8.0",
"next": "latest", "next": "latest",
"react": "^18.2.0", "react": "^18.2.0",
......
import '../styles/globals.css' import '../styles/globals.css'
import Footer from '../components/Footer' import Footer from '../components/Footer'
import Head from 'next/head' import Head from 'next/head'
import { Montserrat } from '@next/font/google' import { Montserrat } from 'next/font/google'
const montserrat = Montserrat({ const montserrat = Montserrat({
subsets: ['latin'], subsets: ['latin'],
......
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