Skip to content

Commit 04592b0

Browse files
committed
Fixed the ternary syntax to produce expected behavior
1 parent 9e7bc02 commit 04592b0

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

src/pagination/PaginationList.js

+20-18
Original file line numberDiff line numberDiff line change
@@ -59,26 +59,28 @@ class PaginationList extends React.Component {
5959
<div className="row" style={{ marginTop: 15 }}>
6060
{
6161
this.props.sizePerPageList.length > 1
62-
? <div className="col-md-6">
63-
<div className="dropdown">
64-
<button className="btn btn-default dropdown-toggle" type="button" id="pageDropDown" data-toggle="dropdown"
65-
aria-expanded="true">
66-
{this.props.sizePerPage}
67-
<span>
68-
{" "}
69-
<span className="caret"/>
70-
</span>
71-
</button>
72-
<ul className="dropdown-menu" role="menu" aria-labelledby="pageDropDown">
73-
{sizePerPageList}
74-
</ul>
75-
</div>
62+
? <div>
7663
<div className="col-md-6">
77-
<ul className="pagination" style={pageListStyle}>
78-
{pageBtns}
79-
</ul>
64+
<div className="dropdown">
65+
<button className="btn btn-default dropdown-toggle" type="button" id="pageDropDown" data-toggle="dropdown"
66+
aria-expanded="true">
67+
{this.props.sizePerPage}
68+
<span>
69+
{" "}
70+
<span className="caret"/>
71+
</span>
72+
</button>
73+
<ul className="dropdown-menu" role="menu" aria-labelledby="pageDropDown">
74+
{sizePerPageList}
75+
</ul>
76+
</div>
77+
</div>
78+
<div className="col-md-6">
79+
<ul className="pagination" style={pageListStyle}>
80+
{pageBtns}
81+
</ul>
82+
</div>
8083
</div>
81-
</div>
8284
: <div className="col-md-12">
8385
<ul className="pagination" style={pageListStyle}>
8486
{pageBtns}

0 commit comments

Comments
 (0)