Skip to content

Commit

Permalink
fix: fixed code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
Cayla Hamann committed Jul 14, 2020
1 parent cfa2601 commit 6c153c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/MDXContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Caution from './Caution';
import Important from './Important';
import Tip from './Tip';
import Intro from './Intro';
import CodeSnippet from './CodeSnippet';
import MDXCodeBlock from './MDXCodeBlock';

import styles from './MDXContainer.module.scss';

Expand All @@ -23,7 +23,8 @@ const components = {
Important,
Tip,
Intro,
code: (props) => <CodeSnippet {...props} />,
code: MDXCodeBlock,
pre: (props) => props.children,
};

const MDXContainer = ({ className, children }) => {
Expand Down

0 comments on commit 6c153c4

Please sign in to comment.