File tree 1 file changed +13
-9
lines changed
1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -995,15 +995,19 @@ module Settings = {
995
995
}
996
996
</DropdownSelect >
997
997
</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
+ }}
1007
1011
<div className = "mt-6" >
1008
1012
<div className = titleClass > {React .string ("Module-System" )} </div >
1009
1013
<ToggleSelection
You can’t perform that action at this time.
0 commit comments