diff options
Diffstat (limited to 'packages/react-shared')
-rw-r--r-- | packages/react-shared/package.json | 2 | ||||
-rw-r--r-- | packages/react-shared/src/components/markdown_section.tsx | 4 |
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} /> |