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 (
|
return (
|
||||||
<section className="editorPanel">
|
<section className="editorPanel">
|
||||||
<div className="panelHeader">
|
<div className="panelHeader">
|
||||||
@@ -482,7 +482,7 @@ function EditorPanel({ actions, children, hint, title }: { actions: ReactNode; c
|
|||||||
<h2>{title}</h2>
|
<h2>{title}</h2>
|
||||||
<p>{hint}</p>
|
<p>{hint}</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="buttonRow">{actions}</div>
|
{actions ? <div className="buttonRow">{actions}</div> : null}
|
||||||
</div>
|
</div>
|
||||||
{children}
|
{children}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user