aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared/src
diff options
context:
space:
mode:
authorKadinsky <kandinsky454@protonmail.ch>2018-10-19 19:34:26 +0800
committerGitHub <noreply@github.com>2018-10-19 19:34:26 +0800
commit17643d98aae596f896039459afbc1ce3df51a073 (patch)
treed3779616b0afba689fa7e4449f26c5dfa7c70e1d /packages/react-shared/src
parentf9d8610383dfa086d7be750340727574918d2288 (diff)
parent724f3b9cf7fb3a740d56e28c5375665b944919f3 (diff)
downloaddexon-sol-tools-17643d98aae596f896039459afbc1ce3df51a073.tar
dexon-sol-tools-17643d98aae596f896039459afbc1ce3df51a073.tar.gz
dexon-sol-tools-17643d98aae596f896039459afbc1ce3df51a073.tar.bz2
dexon-sol-tools-17643d98aae596f896039459afbc1ce3df51a073.tar.lz
dexon-sol-tools-17643d98aae596f896039459afbc1ce3df51a073.tar.xz
dexon-sol-tools-17643d98aae596f896039459afbc1ce3df51a073.tar.zst
dexon-sol-tools-17643d98aae596f896039459afbc1ce3df51a073.zip
Merge pull request #1163 from 0xProject/devSectionFixes
Developer Section Fixes
Diffstat (limited to 'packages/react-shared/src')
-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}
/>