aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/react-docs/src/components/doc_reference.tsx1
-rw-r--r--packages/react-shared/src/components/markdown_section.tsx6
2 files changed, 1 insertions, 6 deletions
diff --git a/packages/react-docs/src/components/doc_reference.tsx b/packages/react-docs/src/components/doc_reference.tsx
index 3a909db7e..83cc00bab 100644
--- a/packages/react-docs/src/components/doc_reference.tsx
+++ b/packages/react-docs/src/components/doc_reference.tsx
@@ -104,7 +104,6 @@ export class DocReference extends React.Component<DocReferenceProps, DocReferenc
sectionName={sectionName}
headerSize={headerSize}
markdownContent={markdownFileIfExists}
- shouldReformatTitle={false}
alternativeSectionTitle={isIntroductionSection ? this.props.docsInfo.displayName : undefined}
/>
);
diff --git a/packages/react-shared/src/components/markdown_section.tsx b/packages/react-shared/src/components/markdown_section.tsx
index 9f5855d16..d5de324c3 100644
--- a/packages/react-shared/src/components/markdown_section.tsx
+++ b/packages/react-shared/src/components/markdown_section.tsx
@@ -19,7 +19,6 @@ export interface MarkdownSectionProps {
markdownContent: string;
headerSize?: HeaderSizes;
githubLink?: string;
- shouldReformatTitle?: boolean;
alternativeSectionTitle?: string;
}
@@ -36,7 +35,6 @@ export interface MarkdownSectionState {
export class MarkdownSection extends React.Component<MarkdownSectionProps, MarkdownSectionState> {
public static defaultProps: Partial<MarkdownSectionProps> = {
headerSize: HeaderSizes.H3,
- shouldReformatTitle: true,
};
constructor(props: MarkdownSectionProps) {
super(props);
@@ -48,9 +46,7 @@ export class MarkdownSection extends React.Component<MarkdownSectionProps, Markd
const { sectionName, markdownContent, headerSize, githubLink } = this.props as PropsWithDefaults;
const id = utils.getIdFromName(sectionName);
- const formattedSectionName = this.props.shouldReformatTitle
- ? utils.convertCamelCaseToSpaces(sectionName)
- : sectionName;
+ const formattedSectionName = utils.convertCamelCaseToSpaces(sectionName);
const title = !_.isUndefined(this.props.alternativeSectionTitle)
? this.props.alternativeSectionTitle
: formattedSectionName;