Fix scrolling for QuickAdd list
This commit is contained in:
parent
5aa65029c6
commit
4c65e6580c
4 changed files with 23 additions and 20 deletions
|
@ -14,7 +14,7 @@ import Loader from '../../App/components/loader';
|
|||
import QuickAddList from './QuickAddList';
|
||||
|
||||
const projectInCollection = (project, collection) =>
|
||||
collection.items.find(item => item.project.id === project.id) != null;
|
||||
collection.items.find(item => item.projectId === project.id) != null;
|
||||
|
||||
class CollectionList extends React.Component {
|
||||
constructor(props) {
|
||||
|
@ -81,6 +81,7 @@ class CollectionList extends React.Component {
|
|||
}
|
||||
|
||||
return (
|
||||
<div className="collection-add-sketch">
|
||||
<div className="quick-add-wrapper">
|
||||
<Helmet>
|
||||
<title>{this.getTitle()}</title>
|
||||
|
@ -88,6 +89,7 @@ class CollectionList extends React.Component {
|
|||
|
||||
{content}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -72,12 +72,14 @@ class SketchList extends React.Component {
|
|||
}
|
||||
|
||||
return (
|
||||
<div className="collection-add-sketch">
|
||||
<div className="quick-add-wrapper">
|
||||
<Helmet>
|
||||
<title>{this.getSketchesTitle()}</title>
|
||||
</Helmet>
|
||||
{content}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -170,12 +170,10 @@ class CollectionList extends React.Component {
|
|||
closeOverlay={this.hideAddSketches}
|
||||
isFixedHeight
|
||||
>
|
||||
<div className="collection-add-sketch">
|
||||
<AddToCollectionSketchList
|
||||
username={this.props.username}
|
||||
collection={find(this.props.collections, { id: this.state.addingSketchesToCollectionId })}
|
||||
/>
|
||||
</div>
|
||||
</Overlay>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -398,9 +398,10 @@ class Collection extends React.Component {
|
|||
closeOverlay={this.hideAddSketches}
|
||||
isFixedHeight
|
||||
>
|
||||
<div className="collection-add-sketch">
|
||||
<AddToCollectionSketchList username={this.props.username} collection={this.props.collection} />
|
||||
</div>
|
||||
<AddToCollectionSketchList
|
||||
username={this.props.username}
|
||||
collection={this.props.collection}
|
||||
/>
|
||||
</Overlay>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue