Move the search box up so that it is in line (to the left) of the paragraph of merchant text

This commit is contained in:
Letícia Camara 2018-11-04 18:26:38 -02:00
parent 8fbd72bb1a
commit 5af3a3acde
2 changed files with 10 additions and 8 deletions

View file

@ -370,7 +370,6 @@ class AmbassadorsPage extends Component {
<div className="row"> <div className="row">
<div className="col-md-10 mx-md-auto"> <div className="col-md-10 mx-md-auto">
<h2 className="ambassadorsTitle" style={centerStyle}><FormattedMessage id="ambassadors.title" /></h2> <h2 className="ambassadorsTitle" style={centerStyle}><FormattedMessage id="ambassadors.title" /></h2>
{ /* Conditional Rendering */} { /* Conditional Rendering */}
{(this.state.loading) ? ( {(this.state.loading) ? (

View file

@ -279,6 +279,15 @@ class MerchantsPage extends Component {
merchantsData = merchantsData.sort(sortBy('location.searchText')); merchantsData = merchantsData.sort(sortBy('location.searchText'));
const textComponent = (
<span>
<FormattedHTMLMessage id="merchants.description1" />
<Link to="/ambs">
<FormattedMessage id="merchants.ambassadors_link_description" />
</Link>
<FormattedHTMLMessage id="merchants.description2" />
</span>
);
return ( return (
<div> <div>
@ -295,13 +304,6 @@ class MerchantsPage extends Component {
<img src={LoadingGif} alt="Loading" style={loadingStyle} /> <img src={LoadingGif} alt="Loading" style={loadingStyle} />
): ( ): (
<div> <div>
<p style={{ textAlign: 'left', marginRight: 20 }}>
<FormattedHTMLMessage id="merchants.description1" />
<Link to="/ambs">
<FormattedMessage id="merchants.ambassadors_link_description" />
</Link>
<FormattedHTMLMessage id="merchants.description2" />
</p>
<Modal <Modal
isOpen={this.state.mapsModalIsOpen} isOpen={this.state.mapsModalIsOpen}
@ -325,6 +327,7 @@ class MerchantsPage extends Component {
<div> <div>
<br /> <br />
<EnhancedTable <EnhancedTable
description={textComponent}
columnData={columnData} columnData={columnData}
data={merchantsData} data={merchantsData}
orderBy="account" orderBy="account"