1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-29 01:30:16 +02:00

refactor how codemirror options apply from settings.

Now Usercodemirror component handles each own option
updation.
This commit is contained in:
Kushagra Gour
2018-10-07 17:49:58 +05:30
parent abdb287b1c
commit ca77303d68
5 changed files with 62 additions and 72 deletions

View File

@@ -6,7 +6,6 @@ function FileIcon({ fileName }) {
if (!fileName) fileName = 'sd.sd';
const type = fileName.match(/.(\w+)$/)[1];
console.log(type);
switch (type) {
case 'html':
return (