Skip to content
Snippets Groups Projects
Commit e36793c6 authored by Niklas Schrötler's avatar Niklas Schrötler
Browse files

PanelContent: Refactored to accept className prop

parent f3f1fc8f
No related merge requests found
import React from 'react'; 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 ( 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} {props.children}
</div> </div>
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment