Skip to content

Commit 5c1e456

Browse files
committed
Exported the styled components to the CollectionSketchList
1 parent 8fc6ded commit 5c1e456

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

client/modules/IDE/components/AddToCollectionList.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ import { remSize } from '../../../theme';
1818
const projectInCollection = (project, collection) =>
1919
collection.items.find((item) => item.projectId === project.id) != null;
2020

21-
const CollectionAddSketchWrapper = styled.div`
21+
export const CollectionAddSketchWrapper = styled.div`
2222
width: ${remSize(600)};
2323
max-width: 100%;
2424
overflow: auto;
2525
`;
2626

27-
const QuickAddWrapper = styled.div`
27+
export const QuickAddWrapper = styled.div`
2828
width: ${remSize(600)};
2929
max-width: 100%;
3030
padding: ${remSize(24)};

client/modules/IDE/components/AddToCollectionSketchList.jsx

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,17 @@ import { connect } from 'react-redux';
55
import { bindActionCreators } from 'redux';
66
import { withTranslation } from 'react-i18next';
77
// import find from 'lodash/find';
8-
import styled from 'styled-components';
98
import * as ProjectsActions from '../actions/projects';
109
import * as CollectionsActions from '../actions/collections';
1110
import * as ToastActions from '../actions/toast';
1211
import * as SortingActions from '../actions/sorting';
1312
import getSortedSketches from '../selectors/projects';
1413
import Loader from '../../App/components/loader';
1514
import QuickAddList from './QuickAddList';
16-
import { remSize } from '../../../theme';
17-
18-
const CollectionAddSketchWrapper = styled.div`
19-
width: ${remSize(600)};
20-
max-width: 100%;
21-
overflow: auto;
22-
`;
23-
24-
const QuickAddWrapper = styled.div`
25-
width: ${remSize(600)};
26-
max-width: 100%;
27-
padding: ${remSize(24)};
28-
height: 100%;
29-
`;
15+
import {
16+
CollectionAddSketchWrapper,
17+
QuickAddWrapper
18+
} from './AddToCollectionList';
3019

3120
class SketchList extends React.Component {
3221
constructor(props) {

0 commit comments

Comments
 (0)