Remove some unused imports
This commit is contained in:
parent
bdf7dfdc3c
commit
4438067904
@ -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" ? <DiaryPageSelector title={content.title} pageSelected={content.pageSelected} name={content.name} pages={content.entries} /> : null}
|
||||
<div dangerouslySetInnerHTML={{ __html: content.html }}>
|
||||
<div className={styles.asciidoc} dangerouslySetInnerHTML={{ __html: content.html }}>
|
||||
</div>
|
||||
{content.type === "diary" ? <DiaryPageSelector title={content.title} pageSelected={content.pageSelected} name={content.name} pages={content.entries} bottom /> : null}
|
||||
</>);
|
||||
|
@ -1,5 +1,4 @@
|
||||
import type { NextPage } from "next";
|
||||
import { useEffect } from "react";
|
||||
import Head from "next/head";
|
||||
import Navigation from "./Navigation";
|
||||
|
||||
|
@ -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 <Layout title={`${content.title} - c0ntroller.de`}>
|
||||
<ContentPage content={content} />
|
||||
|
@ -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 <Layout title={`${content.entries[content.pageSelected - 1].title} - ${content.title} - c0ntroller.de`}>
|
||||
<ContentPage content={content} />
|
||||
|
@ -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 <Layout title={`${content.title} - c0ntroller.de`}>
|
||||
<ContentPage content={content} />
|
||||
|
Loading…
Reference in New Issue
Block a user