Changeset 3734 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/front-page/plugin-section/plugin-section.jsx
- Timestamp:
- 07/28/2016 10:55:18 PM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/front-page
- Files:
-
- 2 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/front-page/plugin-section/plugin-section.jsx
r3733 r3734 5 5 * Internal dependencies. 6 6 */ 7 import PluginCard from ' ./plugin-card';7 import PluginCard from 'components/plugin-card'; 8 8 9 9 export default React.createClass( { … … 11 11 12 12 render() { 13 if ( ! this.props.plugins ) { 14 return <div />; 15 } 16 13 17 return ( 14 18 <section className="plugin-section"> … … 17 21 <Link className="section-link" to={ this.props.section.path }>See all</Link> 18 22 </header> 19 { this.props.plugins.map( ( plugin )=>20 <PluginCard key={ plugin.id } plugin={ plugin} />23 { this.props.plugins.map( slug => 24 <PluginCard key={ slug } slug={ slug } /> 21 25 ) } 22 26 </section>
Note: See TracChangeset
for help on using the changeset viewer.