diff --git a/app/components/ImageGallery.jsx b/app/components/ImageGallery.jsx index 100a1a0..1267a76 100644 --- a/app/components/ImageGallery.jsx +++ b/app/components/ImageGallery.jsx @@ -112,9 +112,6 @@ export class ImageGallery extends Component { imageList = () => { - console.log('===================================='); - console.log(this.props.images); - console.log('===================================='); return this.props.images.map((image, index) => { return ( { } -// - Map state to props +/** + * Map state to props + * @param {object} state + */ const mapStateToProps = ({authorize, global, user, post, comment, imageGallery , vote, notify,circle }) => { return { diff --git a/app/components/Post.jsx b/app/components/Post.jsx index 87e48aa..40fb4f5 100644 --- a/app/components/Post.jsx +++ b/app/components/Post.jsx @@ -290,8 +290,6 @@ static propTypes = { * @param {event} evt is the event passed by click on read more */ handleReadMore(evt) { - - this.setState({ readMoreState: !this.state.readMoreState diff --git a/app/reducers/postReducer.jsx b/app/reducers/postReducer.jsx index 218da16..7b538dd 100644 --- a/app/reducers/postReducer.jsx +++ b/app/reducers/postReducer.jsx @@ -102,4 +102,4 @@ export var postReducer = (state = defaultState, action) => { return state; } -} +} \ No newline at end of file diff --git a/docs/README.md b/docs/README.md index 34ef16c..af7a348 100644 --- a/docs/README.md +++ b/docs/README.md @@ -13,6 +13,12 @@ The React Social Network is an open source project relying on [React](https://facebook.github.io/react/docs/hello-world.html) a powerful javascript library for building the user interface. In this project, I tried to show some features of react/react components as a social network. +

+ + + +

+ Since I started building this project I've planned to have a back end for this project so I haven't focused on performance until I build the back end and move some data procedure from end to back end. Therefore I need to change data structure and actions for [Redux](http://redux.js.org/). >You should consult the [CHANGELOG](https://github.com/Qolzam/react-social-network/blob/master/CHANGELOG.md) and related issues for more information diff --git a/docs/app/multi-device.png b/docs/app/multi-device.png new file mode 100644 index 0000000..a22cce4 Binary files /dev/null and b/docs/app/multi-device.png differ