From 7f7f020d91b7ccbe1dea7ff012ae5fd5093d050b Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Sun, 6 Nov 2022 16:15:57 +0100 Subject: [PATCH] fix: Remove a tag childs from NextJS link components Signed-off-by: Tilman Vatteroth --- src/components/common/redirect.tsx | 5 +--- .../editor-page/app-bar/navbar-branding.tsx | 14 +++++----- .../app-bar/read-only-mode-button.tsx | 18 ++++++------- .../editor-page/app-bar/slide-mode-button.tsx | 18 ++++++------- .../history-card/history-card.tsx | 26 +++++++++---------- .../history-table/history-table-row.tsx | 6 ++--- .../navigation/header-bar/header-nav-link.tsx | 6 ++--- 7 files changed, 39 insertions(+), 54 deletions(-) diff --git a/src/components/common/redirect.tsx b/src/components/common/redirect.tsx index 78e550866..6b616179c 100644 --- a/src/components/common/redirect.tsx +++ b/src/components/common/redirect.tsx @@ -32,10 +32,7 @@ export const Redirect: React.FC = ({ to }) => { return ( - Redirecting to{' '} - - {to} - + Redirecting to {to} ) } diff --git a/src/components/editor-page/app-bar/navbar-branding.tsx b/src/components/editor-page/app-bar/navbar-branding.tsx index efc10c618..c4404bcf5 100644 --- a/src/components/editor-page/app-bar/navbar-branding.tsx +++ b/src/components/editor-page/app-bar/navbar-branding.tsx @@ -23,14 +23,12 @@ export const NavbarBranding: React.FC = () => { return ( - - - - - + + + ) diff --git a/src/components/editor-page/app-bar/read-only-mode-button.tsx b/src/components/editor-page/app-bar/read-only-mode-button.tsx index 9eb5850a0..31eeabfe9 100644 --- a/src/components/editor-page/app-bar/read-only-mode-button.tsx +++ b/src/components/editor-page/app-bar/read-only-mode-button.tsx @@ -19,16 +19,14 @@ export const ReadOnlyModeButton: React.FC = () => { const noteIdentifier = useApplicationState((state) => state.noteDetails.primaryAddress) return ( - - - - + + ) } diff --git a/src/components/editor-page/app-bar/slide-mode-button.tsx b/src/components/editor-page/app-bar/slide-mode-button.tsx index 657f4538d..061879c80 100644 --- a/src/components/editor-page/app-bar/slide-mode-button.tsx +++ b/src/components/editor-page/app-bar/slide-mode-button.tsx @@ -19,16 +19,14 @@ export const SlideModeButton: React.FC = () => { const noteIdentifier = useApplicationState((state) => state.noteDetails.primaryAddress) return ( - - - - + + ) } diff --git a/src/components/history-page/history-card/history-card.tsx b/src/components/history-page/history-card/history-card.tsx index d7f9a57c8..0cdcd0be6 100644 --- a/src/components/history-page/history-card/history-card.tsx +++ b/src/components/history-page/history-card/history-card.tsx @@ -64,22 +64,20 @@ export const HistoryCard: React.FC = (
- - -
- - {entryTitle} - -
-
- {DateTime.fromISO(entry.lastVisitedAt).toRelative()} -
- {lastVisited} -
-
{tags}
+ +
return ( - - - {entryTitle} - + + {entryTitle} {formatHistoryDate(entry.lastVisitedAt)} diff --git a/src/components/landing-layout/navigation/header-bar/header-nav-link.tsx b/src/components/landing-layout/navigation/header-bar/header-nav-link.tsx index 7eb53f625..4736420a7 100644 --- a/src/components/landing-layout/navigation/header-bar/header-nav-link.tsx +++ b/src/components/landing-layout/navigation/header-bar/header-nav-link.tsx @@ -33,10 +33,8 @@ export const HeaderNavLink: React.FC> = ({ return ( - - - {children} - + + {children} )