Making WordPress.org


Ignore:
Timestamp:
08/02/2016 07:37:38 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Add search functionality to React client.

See #1719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/site-header/site-header.jsx

    r3734 r3764  
    11import React from 'react';
    22
    3 /**
    4  * Internal dependencies.
    5  */
    63import SearchForm from 'components/search-form';
    74import SiteDescription from './site-description';
     
    2118                    <SiteTitle isHome={ this.props.isHome } />
    2219                    <SiteDescription isHome={ this.props.isHome } />
    23                     { this.props.isHome ? <SearchForm /> : <MainNavigation /> }
     20                    { this.props.isHome ? <SearchForm searchTerm={ this.props.searchTerm } /> : <MainNavigation searchTerm={ this.props.searchTerm } /> }
    2421                </div>
    2522            </header>
Note: See TracChangeset for help on using the changeset viewer.