Skip to content

Commit fa8145b

Browse files
authored
feat: remove the component of newsletter subscription (#1380)
1 parent 9bc400a commit fa8145b

File tree

7 files changed

+4
-334
lines changed

7 files changed

+4
-334
lines changed

gatsby-config.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,6 @@ const config: GatsbyConfig = {
8686
path: `${__dirname}/src/content`,
8787
},
8888
},
89-
{
90-
resolve: 'gatsby-plugin-mailchimp',
91-
options: {
92-
endpoint:
93-
'https://gmail.us20.list-manage.com/subscribe/post?u=98bed213911ed14e04f519b82&id=9c27a4ee73',
94-
timeout: 3500, //the amount of time, in milliseconds, that you want to allow mailchimp to respond to your request before timing out. defaults to 3500
95-
},
96-
},
9789
{
9890
resolve: `gatsby-transformer-remark`,
9991
options: {

package-lock.json

Lines changed: 0 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"serve": "gatsby serve",
1515
"clean": "gatsby clean",
1616
"check-types": "tsc -p . --noEmit",
17-
"lint": "eslint \"{src/**,.}/*.{js,ts,tsx,mdx}\" --max-warnings 0 --fix",
18-
"lint-check": "eslint \"{src/**,.}/*.{js,ts,tsx,mdx}\" --max-warnings 0",
17+
"lint": "eslint \"src/**/*.{js,ts,tsx,mdx}\" --max-warnings 0 --fix",
18+
"lint-check": "eslint \"src/**/*.{js,ts,tsx,mdx}\" --max-warnings 0",
1919
"prepare": "husky"
2020
},
2121
"dependencies": {
@@ -51,7 +51,6 @@
5151
"eslint-plugin-prettier": "^5.2.1",
5252
"gatsby": "^5.14.1",
5353
"gatsby-plugin-google-gtag": "^5.14.0",
54-
"gatsby-plugin-mailchimp": "^5.2.2",
5554
"gatsby-plugin-manifest": "^5.14.0",
5655
"gatsby-plugin-material-ui": "^4.1.0",
5756
"gatsby-plugin-mdx": "^5.14.0",
@@ -68,7 +67,7 @@
6867
"typescript-eslint": "^8.19.1"
6968
},
7069
"lint-staged": {
71-
"*.{js,ts,tsx,mdx}": [
70+
"src/**/*.{js,ts,tsx,mdx}": [
7271
"npx eslint --fix"
7372
]
7473
}

src/pages/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import type { HeadProps } from 'gatsby';
2020

2121
import { Layout, SEO } from '../components';
2222
import type { DataProps } from '../hooks';
23-
import { About, Blog, Landing, Libraries, News, Newsletter } from '../sections';
23+
import { About, Blog, Landing, Libraries, News } from '../sections';
2424
import { PAGE } from '../helper';
2525
import { footerContent, headerContent } from '../content';
2626
import { Testimonials } from '../sections/home/Testimonials';
@@ -33,7 +33,6 @@ const HomePage = (): JSX.Element => (
3333
<News />
3434
<Blog />
3535
<Testimonials />
36-
<Newsletter />
3736
</Layout>
3837
);
3938
export default HomePage;

src/sections/home/Newsletter.tsx

Lines changed: 0 additions & 236 deletions
This file was deleted.

src/sections/home/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ export { Blog } from './Blog';
1818
export { Landing } from './Landing';
1919
export { Libraries } from './Libraries';
2020
export { News } from './News';
21-
export { Newsletter } from './Newsletter';

0 commit comments

Comments
 (0)