Allow editor panels without actions
All checks were successful
Build Windows App / build-windows (push) Successful in 21m43s
All checks were successful
Build Windows App / build-windows (push) Successful in 21m43s
This commit is contained in:
@@ -474,7 +474,7 @@ function Stat({ label, value }: { label: string; value: string }) {
|
||||
);
|
||||
}
|
||||
|
||||
function EditorPanel({ actions, children, hint, title }: { actions: ReactNode; children: ReactNode; hint: string; title: string }) {
|
||||
function EditorPanel({ actions, children, hint, title }: { actions?: ReactNode; children: ReactNode; hint: string; title: string }) {
|
||||
return (
|
||||
<section className="editorPanel">
|
||||
<div className="panelHeader">
|
||||
@@ -482,7 +482,7 @@ function EditorPanel({ actions, children, hint, title }: { actions: ReactNode; c
|
||||
<h2>{title}</h2>
|
||||
<p>{hint}</p>
|
||||
</div>
|
||||
<div className="buttonRow">{actions}</div>
|
||||
{actions ? <div className="buttonRow">{actions}</div> : null}
|
||||
</div>
|
||||
{children}
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user