Skip to content

Commit

Permalink
Change @next/font to next/font in examples (#46836)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
hanneslund authored Mar 6, 2023
1 parent a0c4354 commit 527afe1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/app-dir-mdx/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from 'next/image'
import { Inter } from '@next/font/google'
import { Inter } from 'next/font/google'
import styles from './page.module.css'
import Content from './message.mdx'

Expand Down
1 change: 0 additions & 1 deletion examples/app-dir-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"start": "next start"
},
"dependencies": {
"@next/font": "latest",
"@next/mdx": "latest",
"@types/mdx": "2.0.3",
"@types/node": "18.11.18",
Expand Down
1 change: 0 additions & 1 deletion examples/with-sfcc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"start": "next start"
},
"dependencies": {
"@next/font": "latest",
"commerce-sdk": "^2.8.0",
"next": "latest",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-sfcc/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '../styles/globals.css'
import Footer from '../components/Footer'
import Head from 'next/head'
import { Montserrat } from '@next/font/google'
import { Montserrat } from 'next/font/google'

const montserrat = Montserrat({
subsets: ['latin'],
Expand Down

0 comments on commit 527afe1

Please sign in to comment.