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:
@@ -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 (
|
||||
|
Reference in New Issue
Block a user