Skip to content

Commit

Permalink
Hotfix website error (maximum callstack size exceeded
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Miskiewicz committed May 15, 2017
1 parent e083d4b commit ebb20ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/src/MDPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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') {
Expand All @@ -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];
}
Expand Down

0 comments on commit ebb20ad

Please sign in to comment.