aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared
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
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')
-rw-r--r--packages/react-shared/package.json2
-rw-r--r--packages/react-shared/src/components/markdown_section.tsx4
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/react-shared/package.json b/packages/react-shared/package.json
index 488586f89..7a150bf35 100644
--- a/packages/react-shared/package.json
+++ b/packages/react-shared/package.json
@@ -55,7 +55,7 @@
"react-highlight": "0xproject/react-highlight#2f40a42e0a3f0ad126f9f42d505b97b603fc7162",
"react-markdown": "^3.2.2",
"react-router-dom": "^4.1.1",
- "react-scroll": "0xproject/react-scroll#similar-to-pr-330-but-with-replace-state",
+ "react-scroll": "0xproject/react-scroll#pr-330-and-replace-state",
"styled-components": "^3.3.0",
"valid-url": "^1.0.9"
},
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}
/>