Skip to content

Commit 681be76

Browse files
committed
Relaxed propType to make :language an optional param
1 parent aad564a commit 681be76

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"main": "dist/main.js",
55
"author": "Brian Vaughn",
66
"user": "bvaughn",
7-
"version": "1.0.2",
7+
"version": "1.0.3",
88
"scripts": {
99
"build": "npm run build:website && npm run build:dist",
1010
"build:website": "npm run clean:website && NODE_ENV=production webpack --config webpack.config.website.js -p --bail",

src/Highlight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import highlight from 'highlight.js'
55
export default class Highlight extends Component {
66
static propTypes = {
77
children: PropTypes.node.isRequired,
8-
language: PropTypes.string.isRequired
8+
language: PropTypes.string
99
}
1010

1111
componentDidMount () {

0 commit comments

Comments
 (0)