File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import React from 'react'
2- import SyntaxHighlighter from 'react-syntax-highlighter'
3- import { dark } from 'react-syntax-highlighter/dist/styles/prism' ;
2+ import SyntaxHighlighter from 'react-syntax-highlighter/dist/prism '
3+ import { prism as theme } from 'react-syntax-highlighter/dist/styles/prism'
44import Block from './Block'
55
66const Code = ( { children } ) => (
77 < Block title = "Code" >
8- < SyntaxHighlighter language = "jsx" style = { dark } customStyle = { { margin : 0 } } >
8+ < SyntaxHighlighter language = "jsx" style = { theme } customStyle = { { margin : 0 } } >
99 { children }
1010 </ SyntaxHighlighter >
1111 </ Block >
Original file line number Diff line number Diff line change 11{
22 "name" : " react-sizes" ,
3- "version" : " 2.0.0-alpha.1 " ,
3+ "version" : " 2.0.0-alpha.0 " ,
44 "description" : " Hoc to easily map window sizes to props." ,
55 "main" : " lib/index.js" ,
66 "module" : " es/index.js" ,
You can’t perform that action at this time.
0 commit comments