Merge branch 'persistent-syntax-selection' into 'dev'

Persistent syntax selection

See merge request ligolang/ligo!478
This commit is contained in:
Sander 2020-03-04 21:40:20 +00:00
commit 909770fd10

View File

@ -59,7 +59,10 @@ function DocPage(props) {
sidebar={sidebar}
sidebarCollapsible={sidebarCollapsible}
syntax={syntax}
onSyntaxChange={l => setSyntax(l)}
onSyntaxChange={l => {
localStorage.setItem('syntax', l);
setSyntax(l)
}}
/>
</div>
)}