From b3370114dded8546df531d8a2bd621fe8357f4a3 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 4 Oct 2023 17:51:52 +0200 Subject: [PATCH] parent property for CardPage --- src/Components/Templates/CardPage.tsx | 4 +++- src/Components/Templates/TitleCard.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Components/Templates/CardPage.tsx b/src/Components/Templates/CardPage.tsx index 558fc4ef..0652d622 100644 --- a/src/Components/Templates/CardPage.tsx +++ b/src/Components/Templates/CardPage.tsx @@ -3,9 +3,10 @@ import * as React from "react" import {TitleCard} from "./TitleCard" -export function CardPage({title,children} : { +export function CardPage({title,children, parent} : { title: string, children?: React.ReactNode, + parent?: {name: string, url: string} }) { @@ -15,6 +16,7 @@ export function CardPage({title,children} : {
diff --git a/src/Components/Templates/TitleCard.tsx b/src/Components/Templates/TitleCard.tsx index b8ba5c7b..2a7ef53f 100644 --- a/src/Components/Templates/TitleCard.tsx +++ b/src/Components/Templates/TitleCard.tsx @@ -27,7 +27,7 @@ interface TitleCardProps {
{/** Card Body */} -
+
{children}