var React = require('react'); var Util = require('../util'); var LazyLoad = require('./mixins/lazy-load'); module.exports = React.createClass({ mixins: [LazyLoad], getInitialState: function() { return { icon: 'img/hourglass.svg', loading: false }; }, onInViewport: function() { if(!this.state.loading) { this.setState({ loading: true }); var desktopEntry = this.props.desktopEntry; this._findIcon(desktopEntry.Icon); } }, render: function() { var desktopEntry = this.props.desktopEntry; var label = desktopEntry.Name; var category = desktopEntry.Categories; return (