From 5a8df80c36b4b161ac92a94c96b070c7b197380e Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Thu, 20 Oct 2022 22:11:17 +0200 Subject: [PATCH] Rename some exports --- pages/blog/diary/[did]/[page].tsx | 4 ++-- pages/me.tsx | 5 ++--- pages/terminal.tsx | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pages/blog/diary/[did]/[page].tsx b/pages/blog/diary/[did]/[page].tsx index 32d0e69..d635207 100644 --- a/pages/blog/diary/[did]/[page].tsx +++ b/pages/blog/diary/[did]/[page].tsx @@ -4,7 +4,7 @@ import Layout from "../../../../components/Blog/Layout"; import { generateContent, getContentList, prepareDOM } from "../../../../lib/content/generateBackend"; import type { ContentList, Diary, DiaryRender } from "../../../../lib/content/types"; -const DiaryMain: NextPage<{ content: DiaryRender }> = ({ content }) => { +const DiaryPage: NextPage<{ content: DiaryRender }> = ({ content }) => { return ; @@ -32,4 +32,4 @@ export const getServerSideProps: GetServerSideProps = async (context) => { }; }; -export default DiaryMain; \ No newline at end of file +export default DiaryPage; \ No newline at end of file diff --git a/pages/me.tsx b/pages/me.tsx index 13f1ca3..ac2f797 100644 --- a/pages/me.tsx +++ b/pages/me.tsx @@ -32,7 +32,7 @@ const SkillCard: NextPage<{ card: SkillCard }> = ({ card }) => { ; }; -const AboutMe: NextPage = () => { +const Me: NextPage = () => { useEffect(() => { const handleScrollAnimation = () => { document.querySelectorAll(".vpAnimated").forEach((element) => { @@ -69,7 +69,6 @@ const AboutMe: NextPage = () => {

Skills

{skills().cards.map((card, i) => )} ; - }; -export default AboutMe; \ No newline at end of file +export default Me; \ No newline at end of file diff --git a/pages/terminal.tsx b/pages/terminal.tsx index 1fdc4f4..c5006d5 100644 --- a/pages/terminal.tsx +++ b/pages/terminal.tsx @@ -13,7 +13,7 @@ import type { ContentList } from "../lib/content/types"; import { useRouter } from "next/router"; import Rainbow from "../lib/colors"; -const Home: NextPage<{ buildTime: string }> = ({ buildTime }) => { +const Terminal: NextPage<{ buildTime: string }> = ({ buildTime }) => { const inputRef = useRef(null); const { modalFunctions } = useModalFunctions(); const { setContents } = useCommands(); @@ -99,4 +99,4 @@ export const getStaticProps: GetStaticProps = async (_context) => { }; }; -export default Home; +export default Terminal;