reorganize custom themes/modes

main
briandennis 7 years ago
parent f15d7a83e2
commit f49b7649fb

@ -6,7 +6,7 @@ import Typography from './style/Typography'
import '../static/react-crop.css' import '../static/react-crop.css'
import '../static/react-spinner.css' import '../static/react-spinner.css'
import '../static/customThemes/one-dark.css' import '../lib/custom/themes/one-dark.css'
export default () => { export default () => {
const onBrowser = typeof window !== 'undefined' const onBrowser = typeof window !== 'undefined'

@ -447,7 +447,7 @@ if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') {
if (language.mode && !alreadyLoaded.has(language.mode)) { if (language.mode && !alreadyLoaded.has(language.mode)) {
alreadyLoaded.add(language.mode) alreadyLoaded.add(language.mode)
language.custom language.custom
? require(`./customModes/${language.mode}`) ? require(`./custom/modes/${language.mode}`)
: require(`codemirror/mode/${language.mode}/${language.mode}`) : require(`codemirror/mode/${language.mode}/${language.mode}`)
} }
} }

Loading…
Cancel
Save