@@ -321,30 +321,18 @@ class Nav extends React.PureComponent {
321
321
>
322
322
Open
323
323
</ Link >
324
- </ li > }
324
+ </ li > }
325
325
{ __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 >
348
336
}
349
337
{ __process . env . EXAMPLES_ENABLED &&
350
338
< li className = "nav__dropdown-item" >
@@ -598,6 +586,18 @@ class Nav extends React.PureComponent {
598
586
My sketches
599
587
</ Link >
600
588
</ 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
+ }
601
601
< li className = "nav__dropdown-item" >
602
602
< Link
603
603
to = "/assets"
0 commit comments