Skip to content

Commit bea6e79

Browse files
committed
Move link to collections list in Nav
1 parent 2030771 commit bea6e79

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

client/components/Nav.jsx

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -321,30 +321,18 @@ class Nav extends React.PureComponent {
321321
>
322322
Open
323323
</Link>
324-
</li>}
324+
</li>}
325325
{__process.env.COLLECTIONS_ENABLED && this.props.user.authenticated &&
326-
<React.Fragment>
327-
<li className="nav__dropdown-item">
328-
<Link
329-
to={`/${this.props.user.username}/collections`}
330-
onFocus={this.handleFocusForFile}
331-
onBlur={this.handleBlur}
332-
onClick={this.setDropdownForNone}
333-
>
334-
Collections
335-
</Link>
336-
</li>
337-
<li className="nav__dropdown-item">
338-
<Link
339-
to={`/${this.props.user.username}/sketches/${this.props.project.id}/add-to-collection`}
340-
onFocus={this.handleFocusForFile}
341-
onBlur={this.handleBlur}
342-
onClick={this.setDropdownForNone}
343-
>
344-
Add to Collection
345-
</Link>
346-
</li>
347-
</React.Fragment>
326+
<li className="nav__dropdown-item">
327+
<Link
328+
to={`/${this.props.user.username}/sketches/${this.props.project.id}/add-to-collection`}
329+
onFocus={this.handleFocusForFile}
330+
onBlur={this.handleBlur}
331+
onClick={this.setDropdownForNone}
332+
>
333+
Add to Collection
334+
</Link>
335+
</li>
348336
}
349337
{__process.env.EXAMPLES_ENABLED &&
350338
<li className="nav__dropdown-item">
@@ -598,6 +586,18 @@ class Nav extends React.PureComponent {
598586
My sketches
599587
</Link>
600588
</li>
589+
{__process.env.COLLECTIONS_ENABLED &&
590+
<li className="nav__dropdown-item">
591+
<Link
592+
to={`/${this.props.user.username}/collections`}
593+
onFocus={this.handleFocusForAccount}
594+
onBlur={this.handleBlur}
595+
onClick={this.setDropdownForNone}
596+
>
597+
My collections
598+
</Link>
599+
</li>
600+
}
601601
<li className="nav__dropdown-item">
602602
<Link
603603
to="/assets"

0 commit comments

Comments
 (0)