Skip to content

Commit ccbeced

Browse files
committed
storybook: adjust code highlight
1 parent 665bfb4 commit ccbeced

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.storybook/components/Code.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
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'
44
import Block from './Block'
55

66
const 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>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)