@@ -1042,8 +1042,7 @@ module Settings = {
10421042 setConfig (defaultConfig )
10431043 }
10441044
1045- let onCompilerSelect = id =>
1046- dispatch (SwitchToCompiler ({id , libraries : readyState .selected .libraries }))
1045+ let onCompilerSelect = id => dispatch (SwitchToCompiler (id ))
10471046
10481047 let titleClass = "hl-5 text-gray-20 mb-2"
10491048 <div className = "p-4 pt-8 bg-gray-90 text-gray-20" >
@@ -1067,7 +1066,9 @@ module Settings = {
10671066 {React .string (version )}
10681067 </option >
10691068 )-> React .array }
1070- <option disabled = true className = "py-4" > {React .string ("---Official Releases---" )} </option >
1069+ <option disabled = true className = "py-4" >
1070+ {React .string ("---Official Releases---" )}
1071+ </option >
10711072 </>
10721073 }}
10731074 {Belt .Array .map (readyState .versions , version =>
@@ -1094,7 +1095,7 @@ module Settings = {
10941095 />
10951096 </div >
10961097 <div className = "mt-6" >
1097- <div className = titleClass > {React .string ("Enabled Libraries" )} </div >
1098+ <div className = titleClass > {React .string ("Loaded Libraries" )} </div >
10981099 <ul >
10991100 {Belt .Array .map (readyState .selected .libraries , lib => {
11001101 <li className = "ml-2" key = lib > {React .string (lib )} </li >
@@ -1202,7 +1203,7 @@ module ControlPanel = {
12021203 let router = Next .Router .useRouter ()
12031204 let children = switch state {
12041205 | Init => React .string ("Initializing..." )
1205- | SwitchingCompiler (_ , _ , _ ) => React .string ("Switching Compiler..." )
1206+ | SwitchingCompiler (_ready , _version ) => React .string ("Switching Compiler..." )
12061207 | Compiling (ready , _ )
12071208 | Ready (ready ) =>
12081209 let onFormatClick = evt => {
@@ -1352,7 +1353,7 @@ module OutputPanel = {
13521353 let errorPane = switch compilerState {
13531354 | Compiling (ready , _ )
13541355 | Ready (ready )
1355- | SwitchingCompiler (ready , _ , _ ) =>
1356+ | SwitchingCompiler (ready , _ ) =>
13561357 <ResultPane
13571358 targetLang = ready .targetLang
13581359 compilerVersion = ready .selected .compilerVersion
@@ -1365,7 +1366,7 @@ module OutputPanel = {
13651366 let settingsPane = switch compilerState {
13661367 | Ready (ready )
13671368 | Compiling (ready , _ )
1368- | SwitchingCompiler (ready , _ , _ ) =>
1369+ | SwitchingCompiler (ready , _ ) =>
13691370 let config = ready .selected .config
13701371 let setConfig = config => compilerDispatch (UpdateConfig (config ))
13711372
0 commit comments