Nav supports EXAMPLE_USERNAME (part of code only, rest in server/views/index.js)

This commit is contained in:
Ruben van de Ven 2020-09-09 11:54:03 +02:00
parent dc5fba2e5a
commit a548e6937c
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ class Nav extends React.PureComponent {
{ getConfig('EXAMPLES_ENABLED') &&
<li className="nav__dropdown-item">
<Link
to="/p5/sketches"
to={`/${getConfig('EXAMPLE_USERNAME')}/sketches`}
onFocus={this.handleFocusForFile}
onBlur={this.handleBlur}
onClick={this.setDropdownForNone}