Merge branch 'persistent-syntax-selection' into 'dev'
Persistent syntax selection See merge request ligolang/ligo!478
This commit is contained in:
commit
909770fd10
@ -59,7 +59,10 @@ function DocPage(props) {
|
|||||||
sidebar={sidebar}
|
sidebar={sidebar}
|
||||||
sidebarCollapsible={sidebarCollapsible}
|
sidebarCollapsible={sidebarCollapsible}
|
||||||
syntax={syntax}
|
syntax={syntax}
|
||||||
onSyntaxChange={l => setSyntax(l)}
|
onSyntaxChange={l => {
|
||||||
|
localStorage.setItem('syntax', l);
|
||||||
|
setSyntax(l)
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user