aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-20 00:44:47 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-20 00:44:47 +0800
commit100f446031e84c367f1d0852ef60fd04d4544b9f (patch)
treee0e2c6c896a7f0b4e738727f6baa8a30e5234695 /packages/react-shared
parent48f1e6057c878a948d21ed7d2214c7792c648f75 (diff)
parenteb3a4d2fabcab3c2423d5827aba2fcaffc348320 (diff)
downloaddexon-sol-tools-100f446031e84c367f1d0852ef60fd04d4544b9f.tar
dexon-sol-tools-100f446031e84c367f1d0852ef60fd04d4544b9f.tar.gz
dexon-sol-tools-100f446031e84c367f1d0852ef60fd04d4544b9f.tar.bz2
dexon-sol-tools-100f446031e84c367f1d0852ef60fd04d4544b9f.tar.lz
dexon-sol-tools-100f446031e84c367f1d0852ef60fd04d4544b9f.tar.xz
dexon-sol-tools-100f446031e84c367f1d0852ef60fd04d4544b9f.tar.zst
dexon-sol-tools-100f446031e84c367f1d0852ef60fd04d4544b9f.zip
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/beta-render-et-al
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}
/>