File tree 2 files changed +5
-3
lines changed
editor/components/codeui-code-options-control
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- import React , { useEffect , useState } from "react" ;
1
+ import React , { useEffect } from "react" ;
2
2
import { IField , LanguageType , Option } from "@code-ui/docstring/dist/lib/type" ;
3
3
import { Docstring as DocstringView } from "@code-ui/docstring" ;
4
4
import {
@@ -32,13 +32,13 @@ export function CodeOptionsControl(props: CodeOptionsControlProps) {
32
32
all_preset_options_map__prod [ __presetname ]
33
33
) ;
34
34
35
- assert ( useroption , "option must be specified" ) ;
36
-
37
35
useEffect ( ( ) => {
38
36
// trigger initial value
39
37
props . onUseroptionChange ( useroption ) ;
40
38
} , [ ] ) ;
41
39
40
+ assert ( useroption , "option must be specified" ) ;
41
+
42
42
// FIXME: this should be fixed on https://github.com/gridaco/code-like-ui (view CURSOR)
43
43
const __dirty_sort_framework = ( ) : Option < string > [ ] => {
44
44
const presets = [
Original file line number Diff line number Diff line change @@ -126,7 +126,9 @@ export const all_preset_options__prod = [
126
126
127
127
export const all_preset_options_map__prod = {
128
128
none : null ,
129
+ flutter : flutter_presets . flutter_default ,
129
130
flutter_default : flutter_presets . flutter_default ,
131
+ react : react_presets . react_default ,
130
132
react_default : react_presets . react_default ,
131
133
react_with_styled_components : react_presets . react_with_styled_components ,
132
134
react_with_inline_css : react_presets . react_with_inline_css ,
You can’t perform that action at this time.
0 commit comments