From e36793c67a42be41eed8605ddabb8f3381f6d712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Schr=C3=B6tler?= <niklas@allround.digital> Date: Sun, 26 Nov 2023 20:58:48 +0100 Subject: [PATCH] PanelContent: Refactored to accept className prop --- src/meta/PanelContent.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/meta/PanelContent.tsx b/src/meta/PanelContent.tsx index d16cda1..1d48e83 100644 --- a/src/meta/PanelContent.tsx +++ b/src/meta/PanelContent.tsx @@ -1,8 +1,13 @@ import React from 'react'; +import classNames from "../util/classNames"; -const PanelContent = (props: {padding?: boolean, children: any}) => { +const PanelContent = (props: {padding?: boolean, className?: string, children: any}) => { return ( - <div className={"flex-1 " + ((props.padding ?? true) ? "px-5 pb-4" : "")}> + <div className={classNames( + "flex-1", + (props.padding ?? true) ? "px-5 pb-4" : "", + props.className + )}> {props.children} </div> ); -- GitLab