Skip to content

Commit

Permalink
Fixed the ternary syntax to produce expected behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspnilsson committed Feb 26, 2016
1 parent 9e7bc02 commit 04592b0
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions src/pagination/PaginationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,26 +59,28 @@ class PaginationList extends React.Component {
<div className="row" style={{ marginTop: 15 }}>
{
this.props.sizePerPageList.length > 1
? <div className="col-md-6">
<div className="dropdown">
<button className="btn btn-default dropdown-toggle" type="button" id="pageDropDown" data-toggle="dropdown"
aria-expanded="true">
{this.props.sizePerPage}
<span>
{" "}
<span className="caret"/>
</span>
</button>
<ul className="dropdown-menu" role="menu" aria-labelledby="pageDropDown">
{sizePerPageList}
</ul>
</div>
? <div>
<div className="col-md-6">
<ul className="pagination" style={pageListStyle}>
{pageBtns}
</ul>
<div className="dropdown">
<button className="btn btn-default dropdown-toggle" type="button" id="pageDropDown" data-toggle="dropdown"
aria-expanded="true">
{this.props.sizePerPage}
<span>
{" "}
<span className="caret"/>
</span>
</button>
<ul className="dropdown-menu" role="menu" aria-labelledby="pageDropDown">
{sizePerPageList}
</ul>
</div>
</div>
<div className="col-md-6">
<ul className="pagination" style={pageListStyle}>
{pageBtns}
</ul>
</div>
</div>
</div>
: <div className="col-md-12">
<ul className="pagination" style={pageListStyle}>
{pageBtns}
Expand Down

0 comments on commit 04592b0

Please sign in to comment.