File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
editor/components/codeui-code-options-control Expand file tree Collapse file tree 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" ;
22import { IField , LanguageType , Option } from "@code-ui/docstring/dist/lib/type" ;
33import { Docstring as DocstringView } from "@code-ui/docstring" ;
44import {
@@ -32,13 +32,13 @@ export function CodeOptionsControl(props: CodeOptionsControlProps) {
3232 all_preset_options_map__prod [ __presetname ]
3333 ) ;
3434
35- assert ( useroption , "option must be specified" ) ;
36-
3735 useEffect ( ( ) => {
3836 // trigger initial value
3937 props . onUseroptionChange ( useroption ) ;
4038 } , [ ] ) ;
4139
40+ assert ( useroption , "option must be specified" ) ;
41+
4242 // FIXME: this should be fixed on https://github.com/gridaco/code-like-ui (view CURSOR)
4343 const __dirty_sort_framework = ( ) : Option < string > [ ] => {
4444 const presets = [
Original file line number Diff line number Diff line change @@ -126,7 +126,9 @@ export const all_preset_options__prod = [
126126
127127export const all_preset_options_map__prod = {
128128 none : null ,
129+ flutter : flutter_presets . flutter_default ,
129130 flutter_default : flutter_presets . flutter_default ,
131+ react : react_presets . react_default ,
130132 react_default : react_presets . react_default ,
131133 react_with_styled_components : react_presets . react_with_styled_components ,
132134 react_with_inline_css : react_presets . react_with_inline_css ,
You can’t perform that action at this time.
0 commit comments