From 7488f29dc96de37107d8b0b11190e19559d7c2d8 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Mon, 11 Oct 2021 10:34:43 +0100 Subject: [PATCH] fixed event-type layout (#898) * fixed event-type layout * added props.centered to shell for centered layouts --- components/Shell.tsx | 9 ++++----- pages/event-types/[type].tsx | 3 ++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/Shell.tsx b/components/Shell.tsx index 34c49c69..5f631cc7 100644 --- a/components/Shell.tsx +++ b/components/Shell.tsx @@ -60,9 +60,10 @@ function useRedirectToLoginIfUnauthenticated() { } export default function Shell(props: { + centered?: boolean; title?: string; heading: ReactNode; - subtitle: string; + subtitle?: ReactNode; children: ReactNode; CTA?: ReactNode; }) { @@ -122,7 +123,7 @@ export default function Shell(props: { <>
- {/* Static sidebar for desktop */}
- {/* Sidebar component, swap this element with another sidebar if you like */}
@@ -199,7 +198,7 @@ export default function Shell(props: {
-
+

diff --git a/pages/event-types/[type].tsx b/pages/event-types/[type].tsx index 2a8dd71d..8bc35e22 100644 --- a/pages/event-types/[type].tsx +++ b/pages/event-types/[type].tsx @@ -322,9 +322,10 @@ const EventTypePage = (props: inferSSRProps) => { return (
setEditIcon(false)}> +
setEditIcon(false)}>