mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
Merge pull request #260 from conorhastings/use-react-synax-highlighter-light
use light version of syntax highlighter
This commit is contained in:
commit
aeb9580870
1 changed files with 4 additions and 1 deletions
|
@ -1,10 +1,13 @@
|
|||
|
||||
import React from 'react';
|
||||
import SyntaxHighlighter from 'react-syntax-highlighter/dist/index';
|
||||
import SyntaxHighlighter, {registerLanguage} from 'react-syntax-highlighter/dist/light';
|
||||
import sunburst from 'react-syntax-highlighter/src/styles/sunburst';
|
||||
import js from 'react-syntax-highlighter/dist/languages/javascript';
|
||||
|
||||
import classes from './help.scss';
|
||||
|
||||
registerLanguage('javascript', js);
|
||||
|
||||
const Help = () => {
|
||||
return (
|
||||
<div className={classes.help}>
|
||||
|
|
Loading…
Reference in a new issue