pitaya-launcher/js/components/edit/desktop-app-item.jsx

24 lines
560 B
JavaScript

var React = require('react');
var Util = require('../../util');
var AppIcon = require('../common/app-icon.jsx');
module.exports = React.createClass({
render: function() {
var desktopEntry = this.props.desktopEntry;
var label = desktopEntry.Name;
var category = desktopEntry.Categories;
var icon = desktopEntry.Icon;
return (
<li className="desktop-app">
<AppIcon className="desktop-app-icon" icon={icon} theme={this.props.theme} />
<span className="desktop-app-label">{label}</span>
</li>
);
}
});