mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix sub-title.tsx
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
124d03f9b7
commit
32d32c0507
@ -12,6 +12,7 @@ export interface SubTitleProps {
|
|||||||
title: React.ReactNode;
|
title: React.ReactNode;
|
||||||
compact?: boolean; // no bottom padding
|
compact?: boolean; // no bottom padding
|
||||||
id?: string;
|
id?: string;
|
||||||
|
children?: React.ReactNode | React.ReactNode[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SubTitle extends React.Component<SubTitleProps> {
|
export class SubTitle extends React.Component<SubTitleProps> {
|
||||||
@ -23,7 +24,7 @@ export class SubTitle extends React.Component<SubTitleProps> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classNames} id={id}>
|
<div className={classNames} id={id}>
|
||||||
{title}
|
{title}
|
||||||
{" "}
|
{" "}
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user