Hotfix website error (maximum callstack size exceeded

This commit is contained in:
Adam Miskiewicz 2017-05-14 21:54:56 -07:00
parent e083d4bf86
commit ebb20ad632
No known key found for this signature in database
GPG Key ID: EC62EB11EB5E47ED

View File

@ -38,7 +38,7 @@ const MDPage = ({ navigation, docPath }) => (
source={DocsMD[docPath]}
className="md-section"
renderers={{
CodeBlock: function CodeBlock({ literal, language }) {
CodeBlock: function CodeBlockComponent({ literal, language }) {
if (language === 'phone-example') {
const graphicName = literal.trim();
return (
@ -53,7 +53,7 @@ const MDPage = ({ navigation, docPath }) => (
}
return <CodeBlock code={literal} />;
},
Heading: function Heading({ level, children }) {
Heading: function HeadingComponent({ level, children }) {
let id = React.Children
.map(children, child => {
if (typeof child === 'string') {
@ -70,7 +70,7 @@ const MDPage = ({ navigation, docPath }) => (
</Header>
);
},
link: function link({ children, href }) {
link: function LinkComponent({ children, href }) {
if (href.indexOf('PhoneGraphic:') === 0) {
const graphicName = href.split('PhoneGraphic:')[1];
}