From ebb20ad632d72348fb86367f3fdb0b90164bb78c Mon Sep 17 00:00:00 2001 From: Adam Miskiewicz Date: Sun, 14 May 2017 21:54:56 -0700 Subject: [PATCH] Hotfix website error (maximum callstack size exceeded --- website/src/MDPage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/src/MDPage.js b/website/src/MDPage.js index 0c8419a..20a8996 100644 --- a/website/src/MDPage.js +++ b/website/src/MDPage.js @@ -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 ; }, - 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 }) => ( ); }, - link: function link({ children, href }) { + link: function LinkComponent({ children, href }) { if (href.indexOf('PhoneGraphic:') === 0) { const graphicName = href.split('PhoneGraphic:')[1]; }