Apply prettier formatting
This commit is contained in:
parent
1cac306093
commit
526645c791
1576 changed files with 65385 additions and 62478 deletions
|
@ -26,16 +26,9 @@ export interface SettingsSubsectionProps extends HTMLAttributes<HTMLDivElement>
|
|||
|
||||
const SettingsSubsection: React.FC<SettingsSubsectionProps> = ({ heading, description, children, ...rest }) => (
|
||||
<div {...rest} className="mx_SettingsSubsection">
|
||||
{ typeof heading === 'string'
|
||||
? <SettingsSubsectionHeading heading={heading} />
|
||||
: <>
|
||||
{ heading }
|
||||
</>
|
||||
}
|
||||
{ !!description && <div className="mx_SettingsSubsection_description">{ description }</div> }
|
||||
<div className="mx_SettingsSubsection_content">
|
||||
{ children }
|
||||
</div>
|
||||
{typeof heading === "string" ? <SettingsSubsectionHeading heading={heading} /> : <>{heading}</>}
|
||||
{!!description && <div className="mx_SettingsSubsection_description">{description}</div>}
|
||||
<div className="mx_SettingsSubsection_content">{children}</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
|
|
|
@ -25,7 +25,9 @@ export interface SettingsSubsectionHeadingProps extends HTMLAttributes<HTMLDivEl
|
|||
|
||||
export const SettingsSubsectionHeading: React.FC<SettingsSubsectionHeadingProps> = ({ heading, children, ...rest }) => (
|
||||
<div {...rest} className="mx_SettingsSubsectionHeading">
|
||||
<Heading className="mx_SettingsSubsectionHeading_heading" size='h3'>{ heading }</Heading>
|
||||
{ children }
|
||||
<Heading className="mx_SettingsSubsectionHeading_heading" size="h3">
|
||||
{heading}
|
||||
</Heading>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue