File tree 4 files changed +24
-21
lines changed
4 files changed +24
-21
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import Loader from '../../App/components/loader';
14
14
import QuickAddList from './QuickAddList' ;
15
15
16
16
const projectInCollection = ( project , collection ) =>
17
- collection . items . find ( item => item . project . id === project . id ) != null ;
17
+ collection . items . find ( item => item . projectId === project . id ) != null ;
18
18
19
19
class CollectionList extends React . Component {
20
20
constructor ( props ) {
@@ -81,12 +81,14 @@ class CollectionList extends React.Component {
81
81
}
82
82
83
83
return (
84
- < div className = "quick-add-wrapper" >
85
- < Helmet >
86
- < title > { this . getTitle ( ) } </ title >
87
- </ Helmet >
88
-
89
- { content }
84
+ < div className = "collection-add-sketch" >
85
+ < div className = "quick-add-wrapper" >
86
+ < Helmet >
87
+ < title > { this . getTitle ( ) } </ title >
88
+ </ Helmet >
89
+
90
+ { content }
91
+ </ div >
90
92
</ div >
91
93
) ;
92
94
}
Original file line number Diff line number Diff line change @@ -72,11 +72,13 @@ class SketchList extends React.Component {
72
72
}
73
73
74
74
return (
75
- < div className = "quick-add-wrapper" >
76
- < Helmet >
77
- < title > { this . getSketchesTitle ( ) } </ title >
78
- </ Helmet >
79
- { content }
75
+ < div className = "collection-add-sketch" >
76
+ < div className = "quick-add-wrapper" >
77
+ < Helmet >
78
+ < title > { this . getSketchesTitle ( ) } </ title >
79
+ </ Helmet >
80
+ { content }
81
+ </ div >
80
82
</ div >
81
83
) ;
82
84
}
Original file line number Diff line number Diff line change @@ -170,12 +170,10 @@ class CollectionList extends React.Component {
170
170
closeOverlay = { this . hideAddSketches }
171
171
isFixedHeight
172
172
>
173
- < div className = "collection-add-sketch" >
174
- < AddToCollectionSketchList
175
- username = { this . props . username }
176
- collection = { find ( this . props . collections , { id : this . state . addingSketchesToCollectionId } ) }
177
- />
178
- </ div >
173
+ < AddToCollectionSketchList
174
+ username = { this . props . username }
175
+ collection = { find ( this . props . collections , { id : this . state . addingSketchesToCollectionId } ) }
176
+ />
179
177
</ Overlay >
180
178
)
181
179
}
Original file line number Diff line number Diff line change @@ -398,9 +398,10 @@ class Collection extends React.Component {
398
398
closeOverlay = { this . hideAddSketches }
399
399
isFixedHeight
400
400
>
401
- < div className = "collection-add-sketch" >
402
- < AddToCollectionSketchList username = { this . props . username } collection = { this . props . collection } />
403
- </ div >
401
+ < AddToCollectionSketchList
402
+ username = { this . props . username }
403
+ collection = { this . props . collection }
404
+ />
404
405
</ Overlay >
405
406
)
406
407
}
You can’t perform that action at this time.
0 commit comments