Skip to content

Commit

Permalink
adjust community search styles
Browse files Browse the repository at this point in the history
  • Loading branch information
gl2748 committed Feb 12, 2020
1 parent f5e4f55 commit e6450a9
Showing 1 changed file with 33 additions and 29 deletions.
62 changes: 33 additions & 29 deletions src/app/components/pages/CommunitiesIndex.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,36 +136,40 @@ export default class CommunitiesIndex extends React.Component {
{/* {<Link to={`/`}>Home</Link>} &gt;{' '} */}
{tt('g.community_list_header')}
</h4>
<div>
<ElasticSearchInput
expanded={true}
handleSubmit={q => {
this.setState({
searchQuery: q,
});
performSearch(
username,
q,
this.state.searchOrder
);
}}
redirect={false}
/>
<div className="articles__header row">
<div className="small-8 medium-7 large-8 column">
<ElasticSearchInput
expanded={true}
handleSubmit={q => {
this.setState({
searchQuery: q,
});
performSearch(
username,
q,
this.state.searchOrder
);
}}
redirect={false}
/>
</div>
<div className="small-4 medium-3 large-4 column">
<NativeSelect
options={sortOptions}
currentlySelected={this.state.searchOrder}
onChange={opt => {
this.setState({
searchOrder: opt.value,
});
performSearch(
username,
this.state.searchQuery,
opt.value
);
}}
/>
</div>
</div>
<NativeSelect
options={sortOptions}
currentlySelected={this.state.searchOrder}
onChange={opt => {
this.setState({
searchOrder: opt.value,
});
performSearch(
username,
this.state.searchQuery,
opt.value
);
}}
/>
<hr />
<table>
<tbody>{ordered.map(comm => row(comm.toJS()))}</tbody>
Expand Down

0 comments on commit e6450a9

Please sign in to comment.