From 7f81af24547f2725b9797052d1a7f36fe1717ccc Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Sat, 30 Jul 2022 17:49:29 +0200 Subject: [PATCH] Move fake link class --- components/ProjectModal.tsx | 6 +++--- styles/ProjectModal.module.css | 10 ++++++++++ styles/globals.css | 9 --------- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/components/ProjectModal.tsx b/components/ProjectModal.tsx index fa3a00a..a9302c3 100644 --- a/components/ProjectModal.tsx +++ b/components/ProjectModal.tsx @@ -79,8 +79,8 @@ const ProjectModal: NextPage = () => { const nextPageSelector = (() => { if (!currentContent || currentContent?.type !== "diary" || currentContent.entries.length === 0) return null; - const prev = {currentPage > 0 ? setModalContent(currentContent, currentPage - 1)}>< {currentPage - 1 > 0 ? currentContent.entries[currentPage - 2].title : "Main page"} : null}; - const next = {currentPage < currentContent.entries.length ? setModalContent(currentContent, currentPage + 1)}>{currentContent.entries[currentPage].title} > : null}; + const prev = {currentPage > 0 ? setModalContent(currentContent, currentPage - 1)}>< {currentPage - 1 > 0 ? currentContent.entries[currentPage - 2].title : "Main page"} : null}; + const next = {currentPage < currentContent.entries.length ? setModalContent(currentContent, currentPage + 1)}>{currentContent.entries[currentPage].title} > : null}; const select = (