Persistent syntax selection.
This commit is contained in:
parent
c8bafdea4a
commit
7b5dd8de3b
@ -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