Changeset 3734 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/front-page/front-page.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:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/front-page/front-page.jsx
r3733 r3734 1 1 import React from 'react'; 2 2 3 import PluginSection from '../containers/plugin-section'; 3 /** 4 * Internal dependencies. 5 */ 6 import PluginSection from './plugin-section/index'; 4 7 5 8 export default React.createClass( { 6 9 displayName: 'FrontPage', 7 10 8 getDefaultProps() {9 return {10 "sections" : [11 {12 "path": "browse/featured/",13 "title": "Featured Plugins"14 },15 {16 "path": "browse/popular/",17 "title": "Popular Plugins"18 },19 {20 "path": "browse/beta/",21 "title": "Beta Plugins"22 }23 ]24 };25 },26 27 11 render() { 28 12 return ( 29 13 <div> 30 { this.props.sections.map( section => <PluginSection key={ section.path } section={ section } /> ) }14 { this.props.sections.map( section => <PluginSection key={ section.path } section={ section } /> ) } 31 15 </div> 32 16 )
Note: See TracChangeset
for help on using the changeset viewer.