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

View file

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