aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-19 17:16:01 +0800
committerFabio Berger <me@fabioberger.com>2018-10-19 17:16:01 +0800
commita60cf44d4581ee898482de235aeccec3eab412f7 (patch)
tree23a5102802a737bc1524cba0b1c60e54355ccd10 /packages/react-shared
parent62f219ea7454f9556c37193ea751ddcd1a5ba73f (diff)
downloaddexon-sol-tools-a60cf44d4581ee898482de235aeccec3eab412f7.tar.gz
dexon-sol-tools-a60cf44d4581ee898482de235aeccec3eab412f7.tar.zst
dexon-sol-tools-a60cf44d4581ee898482de235aeccec3eab412f7.zip
style: fix doc reference package name capitalization
Diffstat (limited to 'packages/react-shared')
-rw-r--r--packages/react-shared/src/components/markdown_section.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/react-shared/src/components/markdown_section.tsx b/packages/react-shared/src/components/markdown_section.tsx
index e6a7d80d5..42c910c11 100644
--- a/packages/react-shared/src/components/markdown_section.tsx
+++ b/packages/react-shared/src/components/markdown_section.tsx
@@ -48,7 +48,7 @@ export class MarkdownSection extends React.Component<MarkdownSectionProps, Markd
const formattedSectionName = utils.convertCamelCaseToSpaces(sectionName);
const title = !_.isUndefined(this.props.alternativeSectionTitle)
? this.props.alternativeSectionTitle
- : formattedSectionName;
+ : _.capitalize(formattedSectionName);
return (
<div
className="md-px1 sm-px2 overflow-hidden"
@@ -61,7 +61,7 @@ export class MarkdownSection extends React.Component<MarkdownSectionProps, Markd
<span style={{ color: colors.grey700 }}>
<AnchorTitle
headerSize={headerSize}
- title={_.capitalize(title)}
+ title={title}
id={id}
shouldShowAnchor={this.state.shouldShowAnchor}
/>