From 4438067904d1070dbca801ff8407d7d76680d5e5 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Tue, 18 Oct 2022 14:07:33 +0200 Subject: [PATCH] Remove some unused imports --- components/Blog/ContentPage.tsx | 4 +++- components/Blog/Layout.tsx | 1 - pages/blog/diary/[did].tsx | 2 -- pages/blog/diary/[did]/[page].tsx | 2 -- pages/blog/project/[pid].tsx | 2 -- 5 files changed, 3 insertions(+), 8 deletions(-) diff --git a/components/Blog/ContentPage.tsx b/components/Blog/ContentPage.tsx index 16a97cd..4bb63ef 100644 --- a/components/Blog/ContentPage.tsx +++ b/components/Blog/ContentPage.tsx @@ -2,10 +2,12 @@ import type { NextPage } from "next"; import type { ProjectRender, DiaryRender } from "../../lib/content/types"; import DiaryPageSelector from "./DiaryPageSelector"; +import styles from "../../styles/Blog/Content.module.scss"; + const ContentPage: NextPage<{ content: ProjectRender | DiaryRender }> = ({ content }) => { return (<> {content.type === "diary" ? : null} -
+
{content.type === "diary" ? : null} ); diff --git a/components/Blog/Layout.tsx b/components/Blog/Layout.tsx index a14fb42..adbb954 100644 --- a/components/Blog/Layout.tsx +++ b/components/Blog/Layout.tsx @@ -1,5 +1,4 @@ import type { NextPage } from "next"; -import { useEffect } from "react"; import Head from "next/head"; import Navigation from "./Navigation"; diff --git a/pages/blog/diary/[did].tsx b/pages/blog/diary/[did].tsx index d4dd306..5f9d3ff 100644 --- a/pages/blog/diary/[did].tsx +++ b/pages/blog/diary/[did].tsx @@ -4,8 +4,6 @@ import ContentPage from "../../../components/Blog/ContentPage"; import { generateContent, getContentList } from "../../../lib/content/generateBackend"; import type { ContentList, DiaryRender, Diary } from "../../../lib/content/types"; -import styles from "../../../styles/Blog/Content.module.scss"; - const DiaryMain: NextPage<{ content: DiaryRender }> = ({ content }) => { return diff --git a/pages/blog/diary/[did]/[page].tsx b/pages/blog/diary/[did]/[page].tsx index 1cc74ae..47a65fa 100644 --- a/pages/blog/diary/[did]/[page].tsx +++ b/pages/blog/diary/[did]/[page].tsx @@ -4,8 +4,6 @@ import Layout from "../../../../components/Blog/Layout"; import { generateContent, getContentList } from "../../../../lib/content/generateBackend"; import type { ContentList, Diary, DiaryRender } from "../../../../lib/content/types"; -import styles from "../../../../styles/Blog/Content.module.scss"; - const DiaryMain: NextPage<{ content: DiaryRender }> = ({ content }) => { return diff --git a/pages/blog/project/[pid].tsx b/pages/blog/project/[pid].tsx index 53c3010..356dbc4 100644 --- a/pages/blog/project/[pid].tsx +++ b/pages/blog/project/[pid].tsx @@ -4,8 +4,6 @@ import Layout from "../../../components/Blog/Layout"; import { generateContent, getContentList } from "../../../lib/content/generateBackend"; import type { ContentList, ProjectRender } from "../../../lib/content/types"; -import styles from "../../../styles/Blog/Content.module.scss"; - const Post: NextPage<{ content: ProjectRender }> = ({ content }) => { return