Persistent syntax selection.

This commit is contained in:
Sander Spies 2020-03-04 21:39:57 +01:00
parent c8bafdea4a
commit 7b5dd8de3b

View File

@ -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>
)} )}