Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit a03323a

Browse files
committed
Cleanup loadable components
1 parent c9fea4e commit a03323a

File tree

12 files changed

+6
-193
lines changed

12 files changed

+6
-193
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ My website has been created for Github Pages using:
7777
* [gatsby-remark-prismjs](https://www.gatsbyjs.com/plugins/gatsby-remark-prismjs/)
7878
* [gatsby-plugin-feed](https://www.gatsbyjs.com/plugins/gatsby-plugin-feed/)
7979
* [gatsby-plugin-catch-links](https://www.gatsbyjs.com/plugins/gatsby-plugin-catch-links/)
80-
* [gatsby-plugin-loadable-components-ssr](https://www.gatsbyjs.com/plugins/gatsby-plugin-loadable-components-ssr/)
8180
* [Styled components](https://styled-components.com)
8281
* [TypeScript](https://www.typescriptlang.org)
8382
* [Jest](https://github.com/facebook/jest) + [React Testing Library](https://github.com/testing-library/react-testing-library)

gatsby-config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ const config: GatsbyConfig = {
215215
},
216216
`gatsby-plugin-catch-links`,
217217
`gatsby-plugin-styled-components`,
218-
`gatsby-plugin-loadable-components-ssr`,
219218
{
220219
resolve: `gatsby-plugin-lunr`,
221220
options: {

package-lock.json

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

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@
4343
"typecheck": "tsc --noEmit"
4444
},
4545
"dependencies": {
46-
"@loadable/component": "^5.16.4",
4746
"@styled-icons/boxicons-logos": "^10.47.0",
4847
"@styled-icons/boxicons-regular": "^10.47.0",
4948
"@styled-icons/fa-solid": "^10.47.0",
5049
"@styled-icons/styled-icon": "^10.7.1",
51-
"@types/loadable__component": "^5.13.9",
5250
"@types/lunr": "^2.3.7",
5351
"@types/react-adaptive-hooks": "0.0.3",
5452
"@types/react-transition-group": "^4.4.12",
@@ -60,7 +58,6 @@
6058
"gatsby-plugin-feed": "^5.14.0",
6159
"gatsby-plugin-google-gtag": "^5.14.0",
6260
"gatsby-plugin-image": "^3.14.0",
63-
"gatsby-plugin-loadable-components-ssr": "^4.3.2",
6461
"gatsby-plugin-lunr": "^1.5.2",
6562
"gatsby-plugin-manifest": "^5.14.0",
6663
"gatsby-plugin-offline": "^6.14.0",

src/components/design-system/molecules/comments.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@ export const Comments: FC<CommentsProps> = ({ url, title }) => (
2323
/>
2424
</CommentsContainer>
2525
);
26-
27-
export default Comments;

src/components/design-system/molecules/post-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import { PostMeta } from "./post-meta";
77
import { Heading5 } from "../atoms/heading5";
88
import { StandardInternalLinkWithTracking } from "../../tracking/standard-internal-link-with-tracking";
99
import { mediaQuery } from "../utils-css/media-query";
10-
import PostTags from "./post-tags";
1110
import { gatsbyImagePlaceholderSelector } from "../utils-css/gatsby-image-selector";
1211
import { FC } from "react";
12+
import { PostTags } from "./post-tags";
1313

1414
interface BigCardProps {
1515
big: boolean;

src/components/design-system/molecules/post-tags.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,3 @@ export const PostTags: FC<PostTagsProps> = ({
3131
))}
3232
</PostTagsContainer>
3333
);
34-
35-
export default PostTags;

src/components/design-system/organism/footer.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,5 +151,3 @@ export const Footer: FC<FooterProps> = ({ author, trackingCategory }) => (
151151
</FooterAuthorDescription>
152152
</FooterContainer>
153153
);
154-
155-
export default Footer;

src/components/design-system/organism/read-next.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,3 @@ export const RecentPosts: FC<RecentPostsProps> = ({ currentSlug }) => {
7373
</ReadNextContainer>
7474
);
7575
};
76-
77-
export default RecentPosts;

src/components/design-system/templates/blog-page-template.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ import { CurrentLocation } from "../../../logic/current-location";
44
import { BlogThemePage } from "./blog-theme-page";
55
import { Head } from "../../head";
66
import { BlogMenu } from "../organism/blog-menu";
7-
import loadable from "@loadable/component";
87
import styled from "styled-components";
98
import { Container } from "../atoms/container";
109
import { blogPrimaryColor } from "../themes/blog-colors";
1110
import { FC, ReactNode } from "react";
12-
13-
const Footer = loadable(() => import(`../organism/footer`));
11+
import { Footer } from "../organism/footer";
1412

1513
const ContentContainer = styled(Container)`
1614
margin-top: ${(props) => props.theme.spacing[12]};

0 commit comments

Comments
 (0)