File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -995,15 +995,19 @@ module Settings = {
995995 }
996996 </DropdownSelect >
997997 </div >
998- <div className = "mt-6" >
999- <div className = titleClass > {React .string ("Syntax" )} </div >
1000- <ToggleSelection
1001- values = availableTargetLangs
1002- toLabel = {lang => lang -> Api .Lang .toExt -> String .toUpperCase }
1003- selected = readyState .targetLang
1004- onChange = onTargetLangSelect
1005- />
1006- </div >
998+ {if availableTargetLangs -> Array .length > 1 {
999+ <div className = "mt-6" >
1000+ <div className = titleClass > {React .string ("Syntax" )} </div >
1001+ <ToggleSelection
1002+ values = availableTargetLangs
1003+ toLabel = {lang => lang -> Api .Lang .toExt -> String .toUpperCase }
1004+ selected = readyState .targetLang
1005+ onChange = onTargetLangSelect
1006+ />
1007+ </div >
1008+ } else {
1009+ React .null
1010+ }}
10071011 <div className = "mt-6" >
10081012 <div className = titleClass > {React .string ("Module-System" )} </div >
10091013 <ToggleSelection
You can’t perform that action at this time.
0 commit comments