Changeset 3734 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/site-header/main-navigation/index.jsx
- Timestamp:
- 07/28/2016 10:55:18 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/site-header
- Files:
-
- 2 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/site-header/main-navigation/index.jsx
r3733 r3734 2 2 3 3 import MenuItem from './menu-item'; 4 import SearchForm from ' ./search-form';4 import SearchForm from 'components/search-form'; 5 5 6 6 export default React.createClass( { 7 7 displayName: 'MainNavigation', 8 8 9 get InitialState() {9 getDefaultProps() { 10 10 return { 11 11 menuItems: [ … … 27 27 28 28 render() { 29 var menuItems = this. state.menuItems.map( ( menuItem, key ) => <MenuItem key={ key } item={ menuItem } /> );29 var menuItems = this.props.menuItems.map( ( menuItem, key ) => <MenuItem key={ key } item={ menuItem } /> ); 30 30 31 31 return (
Note: See TracChangeset
for help on using the changeset viewer.