Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Discover View #1622

Merged
merged 15 commits into from
May 5, 2015
Merged

Discover View #1622

merged 15 commits into from
May 5, 2015

Conversation

thisandagain
Copy link
Contributor

@thisandagain thisandagain changed the title Discover View WIP - Discover View May 1, 2015
<img src="../../img/toucan.svg" />
</div>
var cards = [];
var project = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var project; no need for null here?

@thisandagain thisandagain changed the title WIP - Discover View Discover View May 4, 2015
@@ -64,6 +60,8 @@
"lodash.defaults": "3.1.1",
"react": "0.13.1",
"react-hammerjs": "0.2.2",
"react-imageloader": "1.2.0",
"react-loadermixin": "1.0.4",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ImageLoader is used in discover.jsx. LoaderMixin is a dependency of the image loader.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a dep. bug in image-loader. Filed hzdg/react-imageloader#13

</ImageLoader>
</div>

<div className="meta">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be worth turning this into a <Metadata> component. Right now we're using title and author only, but we probably want to extend that later on with additional things like date posted, likes, etc.


#### Loading Images
Any time you are loading images over the network, we recommend that you use the `ImageLoader` react component. This gives you access to important events like loading and error states as well as a hook for providing a loading animation. Full documentation can be found here: https://github.com/hzdg/react-imageloader
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit: let's use <ImageLoader> to make it clear that it's not a library or the like, but an actual component

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants