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