Skip to content

Commit

Permalink
added initial component for folders list
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueAccords committed May 25, 2018
1 parent 4c318e4 commit 330ec13
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 1 deletion.
8 changes: 8 additions & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"react-router-redux": "^5.0.0-alpha.9",
"redux": "^4.0.0",
"redux-saga": "^0.16.0",
"redux-saga-thunk": "^0.7.1",
"yup": "^0.24.1"
}
}
37 changes: 37 additions & 0 deletions client/src/views/containers/FoldersList/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React, { Fragment } from 'react';
import PT from 'prop-types';
import { connect } from 'react-redux';

/**
*
*/
class FoldersList extends React.Component {
constructor(props) {
super(props);

this.state = {
sortKey: 'id',
sortDirection: 'ASC',
searchFilter: null,
}
}

componentDidMount() {
// fetch initial folders
}

render() {
return (
<Fragment>
Folders list....
</Fragment>
)
}
}

FoldersList.propTypes = {};

export default connect(
null, // mapStateToProps
null // mapDispatchToProps
)(FoldersList);
4 changes: 3 additions & 1 deletion client/src/views/pages/SearchFolders.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from 'react';
import PT from 'prop-types';

import FoldersList from './../containers/FoldersList/index.jsx'

class SearchFolders extends React.Component {
constructor(props) {
super(props);
Expand All @@ -18,7 +20,7 @@ class SearchFolders extends React.Component {
</section>
<div className="section">
<div className="container">
<p>Search folders</p>
<FoldersList/>
</div>
</div>
</div>
Expand Down

0 comments on commit 330ec13

Please sign in to comment.