Skip to content

Commit

Permalink
cambio orden filtros
Browse files Browse the repository at this point in the history
  • Loading branch information
xtian7489 committed Apr 25, 2024
1 parent d445845 commit 98c9f5b
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions ext/lib/site/home-catalogo/filter-propuestas/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,6 @@ export default class FilterPropuestas extends Component {
return (
<nav id='filter-propuestas'>
<div className='filters-nav center'>
<FilterBox
name='facultad'
title='Facultad'
allOptions={facultades.sort(function(a, b) {
const y = a.name.split("Facultad ")[1]
const z = b.name.split("Facultad ")[1]
return y-z;
})}
activeOptions={facultad}
tabIndex="110"
activeDropdown={this.state.activeDropdown}
clearedFilters={this.state.clearedFilters}
handleDropdown={this.handleDropdown}
handleFilter={this.handleFilter}
clearFilter={this.clearFilter}
/>
<FilterBox
name='tag'
title='Tema'
Expand Down Expand Up @@ -152,6 +136,23 @@ export default class FilterPropuestas extends Component {
handleFilter={this.handleFilter}
clearFilter={this.clearFilter}
/>
<FilterBox
name='facultad'
title='Facultad'
allOptions={facultades.sort(function (a, b) {
const y = a.name.split("Facultad ")[1]
const z = b.name.split("Facultad ")[1]
return y - z;
})}
activeOptions={facultad}
tabIndex="110"
activeDropdown={this.state.activeDropdown}
clearedFilters={this.state.clearedFilters}
handleDropdown={this.handleDropdown}
handleFilter={this.handleFilter}
clearFilter={this.clearFilter}
/>


</div>

Expand Down

0 comments on commit 98c9f5b

Please sign in to comment.