Merge pull request #196 from sensebox/update-code-editor

bug fix:  translations do not load  on /codeeditor
This commit is contained in:
Mario Pesch 2022-11-03 10:19:00 +01:00 committed by GitHub
commit b40a439e16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,20 +175,20 @@ void loop() {
defaultValue={ defaultValue={
localStorage.getItem("ArduinoCode") localStorage.getItem("ArduinoCode")
? localStorage.getItem("ArduinoCode") ? localStorage.getItem("ArduinoCode")
: ` : `#include <senseBoxIO.h> //needs to be always included
#include <senseBoxIO.h> //needs to be always included
void setup () { void setup () {
} }
void loop() { void loop() {
}` }`
} }
value={fileContent} value={fileContent}
onMount={(editor, monaco) => { onMount={(editor, monaco) => {
editorRef.current = editor; editorRef.current = editor;
saveValue();
}} }}
/> />
</Grid> </Grid>