File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import 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'
4
4
import Block from './Block'
5
5
6
6
const Code = ( { children } ) => (
7
7
< Block title = "Code" >
8
- < SyntaxHighlighter language = "jsx" style = { dark } customStyle = { { margin : 0 } } >
8
+ < SyntaxHighlighter language = "jsx" style = { theme } customStyle = { { margin : 0 } } >
9
9
{ children }
10
10
</ SyntaxHighlighter >
11
11
</ Block >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-sizes" ,
3
- "version" : " 2.0.0-alpha.1 " ,
3
+ "version" : " 2.0.0-alpha.0 " ,
4
4
"description" : " Hoc to easily map window sizes to props." ,
5
5
"main" : " lib/index.js" ,
6
6
"module" : " es/index.js" ,
You can’t perform that action at this time.
0 commit comments