Skip to content

Commit 5bbb4f5

Browse files
Greenheartallazis
andauthored
Remove unused dependency (Klimatbyran#414)
* Remove unused dependency. Seems like this was added 2 years ago and isn't used anymore. * Fix lint * Fix inconsistent formatting between Prettier and Eslint (`next lint`) --------- Co-authored-by: Charlotta Jaunviksna <[email protected]>
1 parent 63edf19 commit 5bbb4f5

File tree

5 files changed

+7
-32
lines changed

5 files changed

+7
-32
lines changed

.prettierrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"singleQuote": true,
55
"printWidth": 90,
66
"tabWidth": 2,
7-
"bracketSameLine": true,
7+
"bracketSameLine": false,
88
"endOfLine": "auto"
99
}

Atoms.tsx

-5
This file was deleted.

package-lock.json

-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"babel-plugin-styled-components": "^2.1.4",
2020
"chart.js": "^4.4.1",
2121
"deck.gl": "8.6.6",
22-
"jotai": "2.6.4",
2322
"jsdom": "^24.0.0",
2423
"md5": "^2.3.0",
2524
"next": "14.1.0",

pages/_app.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable react/jsx-props-no-spreading */
22
import type { AppProps } from 'next/app'
33
import Head from 'next/head'
4-
import { Provider } from 'jotai'
54
import Script from 'next/script'
65
import CookieConsent from 'react-cookie-consent'
76
import { NextPage } from 'next'
@@ -21,7 +20,7 @@ type AppPropsWithLayout = AppProps & {
2120
function MyApp({ Component, pageProps }: AppPropsWithLayout) {
2221
const getLayout = Component.getLayout ?? ((page) => page)
2322
return (
24-
<Provider>
23+
<>
2524
<Script
2625
strategy="lazyOnload"
2726
src={`https://www.googletagmanager.com/gtag/js?id=${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS}`}
@@ -65,7 +64,10 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
6564
sizes="512x512"
6665
href="/favicons/favicon-512x512.png"
6766
/>
68-
<meta property="og:image" content="https://klimatkollen.se/images/social-picture.png" />
67+
<meta
68+
property="og:image"
69+
content="https://klimatkollen.se/images/social-picture.png"
70+
/>
6971
<meta property="twitter:card" content="summary_large_image" />
7072
<meta
7173
property="twitter:image"
@@ -87,7 +89,7 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
8789
</CookieConsent>
8890
{getLayout(<Component {...pageProps} />)}
8991
</Theme>
90-
</Provider>
92+
</>
9193
)
9294
}
9395

0 commit comments

Comments
 (0)