mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
use light version of syntax highlighter
This commit is contained in:
parent
4e435e1ac7
commit
d1b30a58e2
@ -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 New Issue
Block a user