From f324bf399bd99d14e39e2ee3242fe6a396a724fd Mon Sep 17 00:00:00 2001 From: Jake Suellentrop Date: Mon, 30 Oct 2023 09:40:19 -0500 Subject: [PATCH] makes some CardProps optional Co-authored-by: Seth Etter <655500+sethetter@users.noreply.github.com> --- components/Card.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Card.tsx b/components/Card.tsx index 4b9c42d..2df3c58 100644 --- a/components/Card.tsx +++ b/components/Card.tsx @@ -2,10 +2,10 @@ import { ComponentChildren, JSX } from 'preact'; type CardProps = { title: string; - content: string | JSX.Element; + content?: string | JSX.Element; link?: string; link_text?: string; - children: ComponentChildren; + children?: ComponentChildren; }; const Card = ({ title, content, link, link_text="", children }: CardProps) => { -- knotmirror 0.0.1