From 12215a85fd4a8aa9ecba05d3d657efd14fe9984b Mon Sep 17 00:00:00 2001 From: Magnus Revheim Martinsen Date: Wed, 13 Sep 2023 09:13:31 +0200 Subject: [PATCH] chore(storefront): Update storefront to use the Altinn CDN for Inter font (#809) --- storefront/components/Meta/Meta.tsx | 4 ++++ storefront/globals.css | 1 + storefront/package.json | 1 - storefront/pages/_app.tsx | 11 +---------- yarn.lock | 8 -------- 5 files changed, 6 insertions(+), 19 deletions(-) diff --git a/storefront/components/Meta/Meta.tsx b/storefront/components/Meta/Meta.tsx index e926da9d11..f54f2c25ab 100644 --- a/storefront/components/Meta/Meta.tsx +++ b/storefront/components/Meta/Meta.tsx @@ -20,6 +20,10 @@ const Meta = ({ title, description }: MetaProps) => { name='viewport' content='width=device-width, initial-scale=1' /> + main { diff --git a/storefront/package.json b/storefront/package.json index 2f4b5053b4..9aff67228d 100644 --- a/storefront/package.json +++ b/storefront/package.json @@ -14,7 +14,6 @@ "@mdx-js/loader": "^2.0.0-rc.2", "@mdx-js/react": "^1.6.22", "@navikt/aksel-icons": "^2.8.4", - "@next/font": "13.0.7", "@reach/disclosure": "^0.18.0", "@tanstack/react-query": "^4.29.5", "@tippyjs/react": "^4.2.6", diff --git a/storefront/pages/_app.tsx b/storefront/pages/_app.tsx index 74bdacffdc..be35eb7f6c 100644 --- a/storefront/pages/_app.tsx +++ b/storefront/pages/_app.tsx @@ -4,29 +4,20 @@ import 'tippy.js/dist/tippy.css'; import '@altinn/figma-design-tokens/dist/tokens.css'; import '@digdir/design-system-tokens/brand/digdir/tokens.css'; import '../globals.css'; -import { Inter } from '@next/font/google'; import type { AppProps } from 'next/app'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; -import cn from 'classnames'; import { Analytics } from '@vercel/analytics/react'; import { Header } from '../components/Header/Header'; import { Footer } from '../components/Footer/Footer'; import { JumpToMain } from '../components/JumpToMain'; -const inter = Inter({ - weight: ['400', '500', '600', '700'], - style: ['normal'], - subsets: ['latin'], - display: 'fallback', -}); - const queryClient = new QueryClient(); const MyApp = ({ Component, pageProps }: AppProps) => { return ( -
+
diff --git a/yarn.lock b/yarn.lock index 921efd15a3..bfe132dcab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4891,13 +4891,6 @@ __metadata: languageName: node linkType: hard -"@next/font@npm:13.0.7": - version: 13.0.7 - resolution: "@next/font@npm:13.0.7" - checksum: 88324e483561ed1372b97d434b98cff3c3adfeafc4217b45ff96f429c42ea4c6eebb089b34d8ef353aaf6413aa5f6d918a2ea83701ad129d2cc6f6751184d82a - languageName: node - linkType: hard - "@next/swc-darwin-arm64@npm:13.4.7": version: 13.4.7 resolution: "@next/swc-darwin-arm64@npm:13.4.7" @@ -22142,7 +22135,6 @@ __metadata: "@mdx-js/loader": ^2.0.0-rc.2 "@mdx-js/react": ^1.6.22 "@navikt/aksel-icons": ^2.8.4 - "@next/font": 13.0.7 "@reach/disclosure": ^0.18.0 "@tanstack/react-query": ^4.29.5 "@tippyjs/react": ^4.2.6